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

src/uname.c

index 2dd9634d7cc063b3a249821d7b6d5f08a037c54a..62b9e5f27d1a63e38e5f1e63a217fb8b47412400 100644 (file)
@@ -1,5 +1,5 @@
 /* uname -- print system information
-   Copyright (C) 89,90,91,92,93,94,95,96,1997 Free Software Foundation, Inc.
+   Copyright (C) 1989-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
@@ -42,7 +42,6 @@
 #include "error.h"
 
 static void print_element PARAMS ((unsigned int mask, char *element));
-static void usage PARAMS ((int status));
 
 /* Values that are bitwise or'd into `toprint'. */
 /* Operating system name. */
@@ -88,6 +87,32 @@ static struct option const long_options[] =
   {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]...\n"), program_name);
+      printf (_("\
+Print certain system information.  With no OPTION, same as -s.\n\
+\n\
+  -a, --all        print all information\n\
+  -m, --machine    print the machine (hardware) type\n\
+  -n, --nodename   print the machine's network node hostname\n\
+  -r, --release    print the operating system release\n\
+  -s, --sysname    print the operating system name\n\
+  -p, --processor  print the host processor type\n\
+  -v               print the operating system version\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)
 {
@@ -191,29 +216,3 @@ print_element (unsigned int mask, char *element)
       printf ("%s%c", element, toprint ? ' ' : '\n');
     }
 }
-
-static void
-usage (int status)
-{
-  if (status != 0)
-    fprintf (stderr, _("Try `%s --help' for more information.\n"),
-            program_name);
-  else
-    {
-      printf (_("Usage: %s [OPTION]...\n"), program_name);
-      printf (_("\
-Print certain system information.  With no OPTION, same as -s.\n\
-\n\
-  -a, --all        print all information\n\
-  -m, --machine    print the machine (hardware) type\n\
-  -n, --nodename   print the machine's network node hostname\n\
-  -r, --release    print the operating system release\n\
-  -s, --sysname    print the operating system name\n\
-  -p, --processor  print the host processor type\n\
-  -v               print the operating system version\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);
-}