summaryrefslogtreecommitdiff
path: root/print-calm-fast.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-24 22:48:55 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-24 22:48:55 +0100
commit39c8c55aa9ff84244cf558b9a957b78933babf0a (patch)
treed1f013767035c78b78a987cea509567603ab7783 /print-calm-fast.c
parentc511f4c3be6273b25b0d1802eee2ede3d69b2398 (diff)
downloadtcpdump-39c8c55aa9ff84244cf558b9a957b78933babf0a.tar.gz
Use more ND_TCHECK_n()/ND_TTEST_n() macros
Diffstat (limited to 'print-calm-fast.c')
-rw-r--r--print-calm-fast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/print-calm-fast.c b/print-calm-fast.c
index c9be008c..16b416a3 100644
--- a/print-calm-fast.c
+++ b/print-calm-fast.c
@@ -24,6 +24,7 @@
#include <netdissect-stdinc.h>
#include "netdissect.h"
+#include "extract.h"
#include "addrtoname.h"
/*
@@ -42,7 +43,7 @@ calm_fast_print(netdissect_options *ndo, const u_char *bp, u_int length, const s
int srcNwref;
int dstNwref;
- ND_TCHECK2(*bp, 2);
+ ND_TCHECK_2(bp);
if (length < 2)
goto trunc;
srcNwref = bp[0];