summaryrefslogtreecommitdiff
path: root/print-dtp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-20 08:05:29 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-20 09:40:00 +0100
commit716e07e0602694c434414de78f278a2451ea92cf (patch)
tree2ef4a442fac77e3397865a09526e9dbe8cfcf09a /print-dtp.c
parent8eecfc382e20189f64d1b77515d4bfa6e8ec7155 (diff)
downloadtcpdump-716e07e0602694c434414de78f278a2451ea92cf.tar.gz
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (12/n)
In ND_PRINT() macro calls.
Diffstat (limited to 'print-dtp.c')
-rw-r--r--print-dtp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/print-dtp.c b/print-dtp.c
index 2c981fc6..43e1291e 100644
--- a/print-dtp.c
+++ b/print-dtp.c
@@ -57,7 +57,7 @@ dtp_print (netdissect_options *ndo, const u_char *pptr, u_int length)
ND_TCHECK2(*tptr, DTP_HEADER_LEN);
ND_PRINT((ndo, "DTPv%u, length %u",
- (*tptr),
+ EXTRACT_8BITS(tptr),
length));
/*