diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2010-05-22 15:17:07 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2010-05-22 15:17:07 +1000 |
commit | 4ec3526135a761ec4dfa277153ec3790dc9a088e (patch) | |
tree | 27c8536d842576791bdb2bb1bd533b64f97eaff7 /kernel | |
parent | 870be5845c976374afeec70d81dbc318ad24cd5b (diff) |
param:params-are-const
Since they section can be read-only, they should always have been const.
Minor flow-through various functions.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/params.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/params.c b/kernel/params.c index ef60db14fae0..a3eeeefc9472 100644 --- a/kernel/params.c +++ b/kernel/params.c @@ -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)) { |