ps: conditionally enable -T on non-DESKTOP build too
[oweals/busybox.git] / miscutils / chrt.c
index 0d55e32992ceba35ee2bc323922219cc92ea4c92..cc5660be7ba215b71affb82c6aaada963f577cad 100644 (file)
@@ -1,13 +1,12 @@
 /* vi: set sw=4 ts=4: */
 /*
  * chrt - manipulate real-time attributes of a process
- * Copyright (c) 2006-2007 Bernhard Fischer
+ * Copyright (c) 2006-2007 Bernhard Reutner-Fischer
  *
  * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
  */
 
 #include <sched.h>
-#include <getopt.h> /* optind */
 #include "libbb.h"
 #ifndef _POSIX_PRIORITY_SCHEDULING
 #warning your system may be foobared
@@ -42,7 +41,7 @@ static void show_min_max(int pol)
 #define OPT_o (1<<4)
 
 int chrt_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int chrt_main(int argc ATTRIBUTE_UNUSED, char **argv)
+int chrt_main(int argc UNUSED_PARAM, char **argv)
 {
        pid_t pid = 0;
        unsigned opt;
@@ -68,7 +67,7 @@ int chrt_main(int argc ATTRIBUTE_UNUSED, char **argv)
                fflush_stdout_and_exit(EXIT_SUCCESS);
        }
 
-       argv += optind; 
+       argv += optind;
        if (opt & OPT_p) {
                pid_str = *argv++;
                if (*argv) { /* "-p <priority> <pid> [...]" */