]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-babel.c
Rename cstr[] to istr[] like invalid string
[tcpdump] / print-babel.c
index ea724666e25068c3e6626c35cf579701a27bc21f..2e9c26caa7e358b56f3cb2b40d77745024cedf3f 100644 (file)
@@ -40,6 +40,7 @@
 #include "extract.h"
 
 static const char tstr[] = "[|babel]";
+static const char istr[] = " (invalid)";
 
 static void babel_print_v2(netdissect_options *, const u_char *cp, u_int length);
 
@@ -337,7 +338,7 @@ subtlvs_print(netdissect_options *ndo,
     return;
 
  invalid:
-    ND_PRINT((ndo, " (invalid)"));
+    ND_PRINT((ndo, "%s", istr));
 }
 
 #define ICHECK(i, l) \
@@ -718,6 +719,6 @@ babel_print_v2(netdissect_options *ndo,
     return;
 
  invalid:
-    ND_PRINT((ndo, " (invalid)"));
+    ND_PRINT((ndo, "%s", istr));
     return;
 }