From 8382e04eec789ad4e82db62830d0915817adb14c Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Tue, 2 Jan 2018 16:57:13 +0100 Subject: [PATCH] DNS: Coding style update --- nameser.h | 2 +- print-domain.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nameser.h b/nameser.h index 6610c6c7..d8dbd4db 100644 --- a/nameser.h +++ b/nameser.h @@ -216,7 +216,7 @@ typedef struct { nd_uint16_t ancount; /* number of answer entries */ nd_uint16_t nscount; /* number of authority entries */ nd_uint16_t arcount; /* number of resource entries */ -} HEADER; +} dns_header_t; /* * Macros for subfields of flag fields. diff --git a/print-domain.c b/print-domain.c index 8aff4e99..ae13eb9a 100644 --- a/print-domain.c +++ b/print-domain.c @@ -591,14 +591,14 @@ void domain_print(netdissect_options *ndo, const u_char *bp, u_int length, int is_mdns) { - const HEADER *np; + const dns_header_t *np; uint16_t flags; u_int qdcount, ancount, nscount, arcount; u_int i; const u_char *cp; uint16_t b2; - np = (const HEADER *)bp; + np = (const dns_header_t *)bp; ND_TCHECK(*np); flags = EXTRACT_BE_U_2(np->flags); /* get the byte-order right */ -- 2.39.5