summaryrefslogtreecommitdiff
path: root/print-slow.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-slow.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-slow.c')
-rw-r--r--print-slow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-slow.c b/print-slow.c
index a4064ed4..6f489ae2 100644
--- a/print-slow.c
+++ b/print-slow.c
@@ -262,7 +262,7 @@ slow_print(netdissect_options *ndo,
goto tooshort;
ND_TCHECK(*(pptr+1));
if (*(pptr+1) != LACP_VERSION) {
- ND_PRINT((ndo, "LACP version %u packet not supported", *(pptr+1)));
+ ND_PRINT((ndo, "LACP version %u packet not supported", EXTRACT_U_1(pptr + 1)));
return;
}
print_version = 1;
@@ -273,7 +273,7 @@ slow_print(netdissect_options *ndo,
goto tooshort;
ND_TCHECK(*(pptr+1));
if (*(pptr+1) != MARKER_VERSION) {
- ND_PRINT((ndo, "MARKER version %u packet not supported", *(pptr+1)));
+ ND_PRINT((ndo, "MARKER version %u packet not supported", EXTRACT_U_1(pptr + 1)));
return;
}
print_version = 1;