Skip to content

Commit

Permalink
appletalk: fix warning: format not a string literal and no ...
Browse files Browse the repository at this point in the history
Impact: Use 'static const char[]' instead of 'static char[]', and
since the data is const now it can be placed in __initconst.

Fix this warning:
  net/appletalk/ddp.c: In function 'atalk_init':
  net/appletalk/ddp.c:1894: warning: format not a string literal and no format arguments

Signed-off-by: Hannes Eder <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
hanneseder-net authored and davem330 committed Feb 27, 2009
1 parent e3db6cb commit 2db0960
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/appletalk/ddp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1877,7 +1877,7 @@ EXPORT_SYMBOL(aarp_send_ddp);
EXPORT_SYMBOL(atrtr_get_dev);
EXPORT_SYMBOL(atalk_find_dev_addr);

static char atalk_err_snap[] __initdata =
static const char atalk_err_snap[] __initconst =
KERN_CRIT "Unable to register DDP with SNAP.\n";

/* Called by proto.c on kernel start up */
Expand Down

0 comments on commit 2db0960

Please sign in to comment.