]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(usage): Remove static attribute.
authorJim Meyering <jim@meyering.net>
Mon, 25 Jan 1999 14:28:31 +0000 (14:28 +0000)
committerJim Meyering <jim@meyering.net>
Mon, 25 Jan 1999 14:28:31 +0000 (14:28 +0000)
Move function be the first in the file.

src/nice.c

index 457cffa38d9581720bd0f57e3ae2784d77f97681..fddb4a96e1719c2d55706ce3b078558377a918e9 100644 (file)
@@ -1,5 +1,5 @@
 /* nice -- run a program with modified scheduling priority
-   Copyright (C) 90,91,92,93,94,95,96,1997 Free Software Foundation, Inc.
+   Copyright (C) 1990-1999 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -41,7 +41,6 @@
 #endif
 
 static int isinteger PARAMS ((char *s));
-static void usage PARAMS ((int status));
 
 /* The name this program was run with. */
 char *program_name;
@@ -52,6 +51,29 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
+void
+usage (int status)
+{
+  if (status != 0)
+    fprintf (stderr, _("Try `%s --help' for more information.\n"),
+            program_name);
+  else
+    {
+      printf (_("Usage: %s [OPTION]... [COMMAND [ARG]...]\n"), program_name);
+      printf (_("\
+Run COMMAND with an adjusted scheduling priority.\n\
+With no COMMAND, print the current scheduling priority.  ADJUST is 10\n\
+by default.  Range goes from -20 (highest priority) to 19 (lowest).\n\
+\n\
+  -ADJUST                   increment priority by ADJUST first\n\
+  -n, --adjustment=ADJUST   same as -ADJUST\n\
+      --help                display this help and exit\n\
+      --version             output version information and exit\n"));
+      puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
+    }
+  exit (status);
+}
+
 int
 main (int argc, char **argv)
 {
@@ -186,26 +208,3 @@ isinteger (char *s)
     }
   return 1;
 }
-
-static void
-usage (int status)
-{
-  if (status != 0)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-            program_name);
-  else
-    {
-      printf (_("Usage: %s [OPTION]... [COMMAND [ARG]...]\n"), program_name);
-      printf (_("\
-Run COMMAND with an adjusted scheduling priority.\n\
-With no COMMAND, print the current scheduling priority.  ADJUST is 10\n\
-by default.  Range goes from -20 (highest priority) to 19 (lowest).\n\
-\n\
-  -ADJUST                   increment priority by ADJUST first\n\
-  -n, --adjustment=ADJUST   same as -ADJUST\n\
-      --help                display this help and exit\n\
-      --version             output version information and exit\n"));
-      puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
-    }
-  exit (status);
-}