]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-calm-fast.c
Use more ND_TCHECK_n()/ND_TTEST_n() macros
[tcpdump] / print-calm-fast.c
index c9be008cc29fc497ac41db6e5959a538d230c967..16b416a3f9a516b122db8fb67ed6349e2c237255 100644 (file)
@@ -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];