diff options
author | Matt Fleming <matt.fleming@intel.com> | 2012-04-02 12:41:50 +0100 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2012-04-17 10:58:33 +0100 |
commit | 85598d328b2cc544338c49dc2776ff0bb27a8bd4 (patch) | |
tree | 311542a3f30e0efb82027d0dcb2491758de910dc | |
parent | 9b8f95e34a6ad6ab5fe1f4cf3f39347925e4c843 (diff) | |
download | syslinux-85598d328b2cc544338c49dc2776ff0bb27a8bd4.tar.gz syslinux-85598d328b2cc544338c49dc2776ff0bb27a8bd4.tar.xz syslinux-85598d328b2cc544338c49dc2776ff0bb27a8bd4.zip |
ldlinux: parse_kernel_type() parameter should be const
Since we always pass a const char * to parse_kernel_type(), change the
type of the parameter accordingly to get rid of the following
warnings,
ldlinux.c:66:3: warning: passing argument 1 of ‘parse_kernel_type’ discards qual
ifiers from pointer target type
ldlinux.c:14:25: note: expected ‘char *’ but argument is of type ‘const char *’
ldlinux.c:80:2: warning: passing argument 1 of ‘parse_kernel_type’ discards qual
ifiers from pointer target type
ldlinux.c:14:25: note: expected ‘char *’ but argument is of type ‘const char *’
ldlinux.c: In function ‘main’:
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | com32/elflink/ldlinux/ldlinux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/elflink/ldlinux/ldlinux.c b/com32/elflink/ldlinux/ldlinux.c index 19524c58..56777b14 100644 --- a/com32/elflink/ldlinux/ldlinux.c +++ b/com32/elflink/ldlinux/ldlinux.c @@ -12,7 +12,7 @@ #include <sys/module.h> -static enum kernel_type parse_kernel_type(char *kernel) +static enum kernel_type parse_kernel_type(const char *kernel) { enum kernel_type type; const char *p; |