diff options
Diffstat (limited to 'procps')
-rw-r--r-- | procps/pidof.c | 2 | ||||
-rw-r--r-- | procps/ps.c | 6 | ||||
-rw-r--r-- | procps/top.c | 2 | ||||
-rw-r--r-- | procps/watch.c | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/procps/pidof.c b/procps/pidof.c index 01e587c..c989076 100644 --- a/procps/pidof.c +++ b/procps/pidof.c @@ -28,7 +28,7 @@ int pidof_main(int argc, char **argv) #endif /* do unconditional option parsing */ - opt = getopt32(argc, argv, "" + opt = getopt32(argv, "" USE_FEATURE_PIDOF_SINGLE ("s") USE_FEATURE_PIDOF_OMIT("o:", &omits)); diff --git a/procps/ps.c b/procps/ps.c index 5150a08..805fe06 100644 --- a/procps/ps.c +++ b/procps/ps.c @@ -297,7 +297,7 @@ int ps_main(int argc, char **argv) // Select which columns to display /* We allow (and ignore) most of the above. FIXME */ opt_complementary = "o::"; - USE_SELINUX(opt =) getopt32(argc, argv, "Zo:aAdefl", &opt_o); + USE_SELINUX(opt =) getopt32(argv, "Zo:aAdefl", &opt_o); if (opt_o) { do { parse_o(opt_o->data); @@ -357,7 +357,7 @@ int ps_main(int argc, char **argv) #if ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX #if ENABLE_FEATURE_PS_WIDE opt_complementary = "-:ww"; - USE_SELINUX(i =) getopt32(argc, argv, USE_SELINUX("Z") "w", &w_count); + USE_SELINUX(i =) getopt32(argv, USE_SELINUX("Z") "w", &w_count); /* if w is given once, GNU ps sets the width to 132, * if w is given more than once, it is "unlimited" */ @@ -370,7 +370,7 @@ int ps_main(int argc, char **argv) terminal_width = MAX_WIDTH; } #else /* only ENABLE_SELINUX */ - i = getopt32(argc, argv, "Z"); + i = getopt32(argv, "Z"); #endif #if ENABLE_SELINUX if ((i & 1) && is_selinux_enabled()) diff --git a/procps/top.c b/procps/top.c index 85699b0..494509c 100644 --- a/procps/top.c +++ b/procps/top.c @@ -535,7 +535,7 @@ int top_main(int argc, char **argv) /* do normal option parsing */ opt_complementary = "-"; - getopt32(argc, argv, "d:n:b", &sinterval, &siterations); + getopt32(argv, "d:n:b", &sinterval, &siterations); if (option_mask32 & 0x1) interval = xatou(sinterval); // -d if (option_mask32 & 0x2) iterations = xatou(siterations); // -n //if (option_mask32 & 0x4) // -b diff --git a/procps/watch.c b/procps/watch.c index b2adcd5..3d18105 100644 --- a/procps/watch.c +++ b/procps/watch.c @@ -35,7 +35,7 @@ int watch_main(int argc, char **argv) char **p; opt_complementary = "-1"; // at least one param please - opt = getopt32(argc, argv, "+dtn:", &tmp); + opt = getopt32(argv, "+dtn:", &tmp); //if (opt & 0x1) // -d (ignore) //if (opt & 0x2) // -t if (opt & 0x4) period = xatou(tmp); |