aboutsummaryrefslogtreecommitdiffstats
path: root/com32/elflink/ldlinux/config.h
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@linux.intel.com>2011-03-16 13:26:57 +0000
committerMatt Fleming <matt.fleming@linux.intel.com>2011-03-16 14:06:39 +0000
commiteee9ce324a85a4974188b93c6ca6a11020d00c1c (patch)
treee04625e1146849ec6541505b4be735dcbefba44a /com32/elflink/ldlinux/config.h
parent3664450f21f246cf9ebbdc21bf52eb60b6de890e (diff)
downloadsyslinux-eee9ce324a85a4974188b93c6ca6a11020d00c1c.tar.gz
syslinux-eee9ce324a85a4974188b93c6ca6a11020d00c1c.tar.xz
syslinux-eee9ce324a85a4974188b93c6ca6a11020d00c1c.zip
ldlinux: Sprinkle const type qualifers
The following warnings are all caused because we're assigning from const char * to char *. As the strings are never modified, it makes sense to add the const type qualifer instead of casting away const. readconfig.c: In function ‘parse_config_file’: readconfig.c:708:11: warning: assignment discards qualifiers from pointer target type readconfig.c:937:10: warning: assignment discards qualifiers from pointer target type readconfig.c:987:20: warning: assignment discards qualifiers from pointer target type readconfig.c:998:15: warning: assignment discards qualifiers from pointer target type readconfig.c:1004:18: warning: assignment discards qualifiers from pointer target type readconfig.c:1041:11: warning: assignment discards qualifiers from pointer target type Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
Diffstat (limited to 'com32/elflink/ldlinux/config.h')
-rw-r--r--com32/elflink/ldlinux/config.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/com32/elflink/ldlinux/config.h b/com32/elflink/ldlinux/config.h
index 77652663..37c57da1 100644
--- a/com32/elflink/ldlinux/config.h
+++ b/com32/elflink/ldlinux/config.h
@@ -33,7 +33,7 @@ extern short vkernel; //have we seen any "label" statements?
extern short displaycon; //conio.inc
extern short nohalt; //idle.inc
-extern char *default_cmd; //"default" command line
-extern char *onerror; //"onerror" command line
+extern const char *default_cmd; //"default" command line
+extern const char *onerror; //"onerror" command line
#endif /* __CONFIG_H__ */