]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-slow.c
Squelch a Coverity warning.
[tcpdump] / print-slow.c
index 968534e5c9b06e52e581e1b3badfd067d06df536..7e83d1669be2c0e01931b8f5ba7e0171f472e3c4 100644 (file)
@@ -22,9 +22,9 @@
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "extract.h"
 #include "addrtoname.h"
 #include "ether.h"
@@ -476,7 +476,7 @@ slow_oam_print(netdissect_options *ndo,
         const struct slow_oam_loopbackctrl_t *slow_oam_loopbackctrl;
     } tlv;
 
-    ptr.slow_oam_common_header = (struct slow_oam_common_header_t *)tptr;
+    ptr.slow_oam_common_header = (const struct slow_oam_common_header_t *)tptr;
     tptr += sizeof(struct slow_oam_common_header_t);
     tlen -= sizeof(struct slow_oam_common_header_t);