summaryrefslogtreecommitdiff
path: root/print-dtp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-26 21:33:24 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-26 21:33:24 +0100
commit2858e729edf1112bc075c8fb72a66726009b391b (patch)
tree5579d4e73d029d0a98ac82f2aaae586d3d93181f /print-dtp.c
parent1a90fd99d279d63242419a30ba3e0720872bff75 (diff)
downloadtcpdump-2858e729edf1112bc075c8fb72a66726009b391b.tar.gz
Use more the EXTRACT_U_1() macro (29/n)
In ND_PRINT() macro call(s) (step 8). *(p + e)
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 cd7a1845..4799f260 100644
--- a/print-dtp.c
+++ b/print-dtp.c
@@ -96,7 +96,7 @@ dtp_print (netdissect_options *ndo, const u_char *pptr, u_int length)
case DTP_DTP_TYPE_TLV:
if (len < 5)
goto invalid;
- ND_PRINT((ndo, ", 0x%x", *(tptr+4)));
+ ND_PRINT((ndo, ", 0x%x", EXTRACT_U_1(tptr + 4)));
break;
case DTP_NEIGHBOR_TLV: