param: make param sections const.
Since this section can be read-only (they're in .rodata), they should always have been const. Minor flow-through various functions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Tested-by: Phil Carmody <ext-phil.2.carmody@nokia.com>
This commit is contained in:
parent
a1054322af
commit
914dcaa84c
3 changed files with 7 additions and 7 deletions
|
@ -88,7 +88,7 @@ static inline int parameq(const char *input, const char *paramname)
|
|||
|
||||
static int parse_one(char *param,
|
||||
char *val,
|
||||
struct kernel_param *params,
|
||||
const struct kernel_param *params,
|
||||
unsigned num_params,
|
||||
int (*handle_unknown)(char *param, char *val))
|
||||
{
|
||||
|
@ -170,7 +170,7 @@ static char *next_arg(char *args, char **param, char **val)
|
|||
/* Args looks like "foo=bar,bar2 baz=fuz wiz". */
|
||||
int parse_args(const char *name,
|
||||
char *args,
|
||||
struct kernel_param *params,
|
||||
const struct kernel_param *params,
|
||||
unsigned num,
|
||||
int (*unknown)(char *param, char *val))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue