]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-timed.c
Use the EXTRACT_U_1() macro in some utility functions
[tcpdump] / print-timed.c
index a6dca86f8b4b5d2521379b3785a1d3994a6dd57f..ecc4c388c1c3d481a9534c01a4fe228731eff6bb 100644 (file)
@@ -24,7 +24,7 @@
 /* specification: http://docs.freebsd.org/44doc/smm/12.timed/paper.pdf */
 
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
 #include "netdissect-stdinc.h"
@@ -120,7 +120,7 @@ timed_print(netdissect_options *ndo,
        case TSP_ADJTIME:
        case TSP_SETDATE:
        case TSP_SETDATEREQ:
-               ND_TCHECK(tsp->tsp_time);
+               ND_TCHECK_8(&tsp->tsp_time);
                sec = EXTRACT_BE_S_4(tsp->tsp_time.tv_sec);
                usec = EXTRACT_BE_S_4(tsp->tsp_time.tv_usec);
                /* XXX The comparison below is always false? */