aboutsummaryrefslogtreecommitdiff
path: root/procps/ps.c
diff options
context:
space:
mode:
Diffstat (limited to 'procps/ps.c')
-rw-r--r--procps/ps.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/procps/ps.c b/procps/ps.c
index 5150a08a2..805fe0615 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -297,7 +297,7 @@ int ps_main(int argc, char **argv)
297 // Select which columns to display 297 // Select which columns to display
298 /* We allow (and ignore) most of the above. FIXME */ 298 /* We allow (and ignore) most of the above. FIXME */
299 opt_complementary = "o::"; 299 opt_complementary = "o::";
300 USE_SELINUX(opt =) getopt32(argc, argv, "Zo:aAdefl", &opt_o); 300 USE_SELINUX(opt =) getopt32(argv, "Zo:aAdefl", &opt_o);
301 if (opt_o) { 301 if (opt_o) {
302 do { 302 do {
303 parse_o(opt_o->data); 303 parse_o(opt_o->data);
@@ -357,7 +357,7 @@ int ps_main(int argc, char **argv)
357#if ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX 357#if ENABLE_FEATURE_PS_WIDE || ENABLE_SELINUX
358#if ENABLE_FEATURE_PS_WIDE 358#if ENABLE_FEATURE_PS_WIDE
359 opt_complementary = "-:ww"; 359 opt_complementary = "-:ww";
360 USE_SELINUX(i =) getopt32(argc, argv, USE_SELINUX("Z") "w", &w_count); 360 USE_SELINUX(i =) getopt32(argv, USE_SELINUX("Z") "w", &w_count);
361 /* if w is given once, GNU ps sets the width to 132, 361 /* if w is given once, GNU ps sets the width to 132,
362 * if w is given more than once, it is "unlimited" 362 * if w is given more than once, it is "unlimited"
363 */ 363 */
@@ -370,7 +370,7 @@ int ps_main(int argc, char **argv)
370 terminal_width = MAX_WIDTH; 370 terminal_width = MAX_WIDTH;
371 } 371 }
372#else /* only ENABLE_SELINUX */ 372#else /* only ENABLE_SELINUX */
373 i = getopt32(argc, argv, "Z"); 373 i = getopt32(argv, "Z");
374#endif 374#endif
375#if ENABLE_SELINUX 375#if ENABLE_SELINUX
376 if ((i & 1) && is_selinux_enabled()) 376 if ((i & 1) && is_selinux_enabled())