]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Make the string pointer in "struct juniper_cookie_table" just a "char
authorguy <guy>
Thu, 21 Apr 2005 04:03:43 +0000 (04:03 +0000)
committerguy <guy>
Thu, 21 Apr 2005 04:03:43 +0000 (04:03 +0000)
*", so as to avoid GCC 4.0 warnings when initializing it from a string.

print-juniper.c

index b3e85e8e59b7fb2707a933b85fac79e0641fa4c2..d6fe9279a77996561225367ae16d79738a98c118 100644 (file)
@@ -15,7 +15,7 @@
 
 #ifndef lint
 static const char rcsid[] _U_ =
-    "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.9 2005-04-20 12:41:45 hannes Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/tcpdump/print-juniper.c,v 1.10 2005-04-21 04:03:43 guy Exp $ (LBL)";
 #endif
 
 #ifdef HAVE_CONFIG_H
@@ -62,7 +62,7 @@ enum {
 struct juniper_cookie_table_t {
     u_int32_t pictype;         /* pic type */
     u_int8_t  cookie_len;       /* cookie len */
-    const u_int8_t *s;         /* pic name */
+    const char *s;             /* pic name */
 };
 
 static struct juniper_cookie_table_t juniper_cookie_table[] = {