]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-krb.c
Avoiding conditional directives that break statements
[tcpdump] / print-krb.c
index 2eebfa69bb83d0c254871ee7186187d0dccf11b2..a0f26781aa5f46e947fac44fbc910180ca7a3c0c 100644 (file)
  * Initial contribution from John Hawkinson ([email protected]).
  */
 
-#define NETDISSECT_REWORKED
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
-#include <tcpdump-stdinc.h>
+#include <netdissect-stdinc.h>
 
-#include "interface.h"
+#include "netdissect.h"
 #include "extract.h"
 
 static const char tstr[] = " [|kerberos]";
@@ -156,7 +155,7 @@ krb4_print(netdissect_options *ndo,
 #define IS_LENDIAN(kp) (((kp)->type & 0x01) != 0)
 #define KTOHSP(kp, cp) (IS_LENDIAN(kp) ? EXTRACT_LE_16BITS(cp) : EXTRACT_16BITS(cp))
 
-       kp = (struct krb *)cp;
+       kp = (const struct krb *)cp;
 
        if ((&kp->type) >= ndo->ndo_snapend) {
                ND_PRINT((ndo, "%s", tstr));
@@ -227,7 +226,7 @@ krb_print(netdissect_options *ndo,
 {
        register const struct krb *kp;
 
-       kp = (struct krb *)dat;
+       kp = (const struct krb *)dat;
 
        if (dat >= ndo->ndo_snapend) {
                ND_PRINT((ndo, "%s", tstr));