aboutsummaryrefslogtreecommitdiff
path: root/src/cmdline.opt
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmdline.opt')
-rw-r--r--src/cmdline.opt18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/cmdline.opt b/src/cmdline.opt
index 389cea7..7d6f7d4 100644
--- a/src/cmdline.opt
+++ b/src/cmdline.opt
@@ -208,7 +208,21 @@ END
OPTIONS_END
void
-parse_options(int argc, char *argv[], int *index)
+parse_options (int *pargc, char ***pargv)
{
- GETOPT(argc, argv, *index)
+ int argc = *pargc;
+ char **argv = *pargv;
+ int index;
+
+ if (init_process)
+ {
+ sysvinit_parse_argv (argc, argv);
+ index = argc;
+ }
+ else
+ {
+ GETOPT(argc, argv, index);
+ }
+ *pargc -= index;
+ *pargv += index;
}

Return to:

Send suggestions and report system problems to the System administrator.