ldlinux: parse_kernel_type() parameter should be const
authorMatt Fleming <matt.fleming@intel.com>
Mon, 2 Apr 2012 11:41:50 +0000 (12:41 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 17 Apr 2012 09:58:33 +0000 (10:58 +0100)
commit85598d328b2cc544338c49dc2776ff0bb27a8bd4
tree311542a3f30e0efb82027d0dcb2491758de910dc
parent9b8f95e34a6ad6ab5fe1f4cf3f39347925e4c843
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>
com32/elflink/ldlinux/ldlinux.c