aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2002-12-14 20:13:11 -0800
committerLinus Torvalds <torvalds@home.transmeta.com>2002-12-14 20:13:11 -0800
commit326e7842d30d5cfc1089b85a7aa63e5c9f3c0a74 (patch)
tree238dc2a8cf0928424190f7466be169bd36ac26f6 /lib
parent6c23a56ab914cb11d532f3884ac6dc105f253117 (diff)
downloadhistory-326e7842d30d5cfc1089b85a7aa63e5c9f3c0a74.tar.gz
[PATCH] Module Parameter Core Patch
This patch is a rewrite of the insmod and boot parameter handling, to unify them. The new format is fairly simple: built on top of __module_param_call there are several helpers, eg "module_param(foo, int, 000)". The final argument is the permissions bits, for exposing parameters in sysfs (if non-zero) at a later stage.
Diffstat (limited to 'lib')
-rw-r--r--lib/cmdline.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/cmdline.c b/lib/cmdline.c
index a9e9589d3d5786..0331ed825ea79e 100644
--- a/lib/cmdline.c
+++ b/lib/cmdline.c
@@ -64,12 +64,12 @@ int get_option (char **str, int *pint)
* completely parseable).
*/
-char *get_options (char *str, int nints, int *ints)
+char *get_options(const char *str, int nints, int *ints)
{
int res, i = 1;
while (i < nints) {
- res = get_option (&str, ints + i);
+ res = get_option ((char **)&str, ints + i);
if (res == 0)
break;
i++;
@@ -77,7 +77,7 @@ char *get_options (char *str, int nints, int *ints)
break;
}
ints[0] = i - 1;
- return (str);
+ return (char *)str;
}
/**