diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2009-03-20 01:45:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-03-21 22:06:51 -0400 |
commit | fa665ccf01440644a3956ed039e51e1088cd0f15 (patch) | |
tree | e80e3320a8b0cb2f423e1a00572813259424c855 /net | |
parent | 7ca98fa234afa096ec2a5e7195ad2d32555cca86 (diff) |
ipx: use constant for strings and desciptor
Fix compiler warning about non-const format string.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/ipx/af_ipx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipx/af_ipx.c b/net/ipx/af_ipx.c index 30bd322b7985..1627050e29fd 100644 --- a/net/ipx/af_ipx.c +++ b/net/ipx/af_ipx.c | |||
@@ -1975,15 +1975,15 @@ static struct notifier_block ipx_dev_notifier = { | |||
1975 | extern struct datalink_proto *make_EII_client(void); | 1975 | extern struct datalink_proto *make_EII_client(void); |
1976 | extern void destroy_EII_client(struct datalink_proto *); | 1976 | extern void destroy_EII_client(struct datalink_proto *); |
1977 | 1977 | ||
1978 | static unsigned char ipx_8022_type = 0xE0; | 1978 | static const unsigned char ipx_8022_type = 0xE0; |
1979 | static unsigned char ipx_snap_id[5] = { 0x0, 0x0, 0x0, 0x81, 0x37 }; | 1979 | static const unsigned char ipx_snap_id[5] = { 0x0, 0x0, 0x0, 0x81, 0x37 }; |
1980 | static char ipx_EII_err_msg[] __initdata = | 1980 | static const char ipx_EII_err_msg[] __initconst = |
1981 | KERN_CRIT "IPX: Unable to register with Ethernet II\n"; | 1981 | KERN_CRIT "IPX: Unable to register with Ethernet II\n"; |
1982 | static char ipx_8023_err_msg[] __initdata = | 1982 | static const char ipx_8023_err_msg[] __initconst = |
1983 | KERN_CRIT "IPX: Unable to register with 802.3\n"; | 1983 | KERN_CRIT "IPX: Unable to register with 802.3\n"; |
1984 | static char ipx_llc_err_msg[] __initdata = | 1984 | static const char ipx_llc_err_msg[] __initconst = |
1985 | KERN_CRIT "IPX: Unable to register with 802.2\n"; | 1985 | KERN_CRIT "IPX: Unable to register with 802.2\n"; |
1986 | static char ipx_snap_err_msg[] __initdata = | 1986 | static const char ipx_snap_err_msg[] __initconst = |
1987 | KERN_CRIT "IPX: Unable to register with SNAP\n"; | 1987 | KERN_CRIT "IPX: Unable to register with SNAP\n"; |
1988 | 1988 | ||
1989 | static int __init ipx_init(void) | 1989 | static int __init ipx_init(void) |