From: guy Date: Thu, 21 Apr 2005 04:03:43 +0000 (+0000) Subject: Make the string pointer in "struct juniper_cookie_table" just a "char X-Git-Tag: tcpdump-4.0.0~483 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/19b483245d8abb94e5838870314f9bf12f2b32ad?hp=1d55dbd498d98fbab65f5a2b2172ab9c3383b8b4 Make the string pointer in "struct juniper_cookie_table" just a "char *", so as to avoid GCC 4.0 warnings when initializing it from a string. --- diff --git a/print-juniper.c b/print-juniper.c index b3e85e8e..d6fe9279 100644 --- a/print-juniper.c +++ b/print-juniper.c @@ -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[] = {