diff options
author | Jim Meyering <jim@meyering.net> | 1999-01-25 14:28:31 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1999-01-25 14:28:31 +0000 |
commit | 7082d762aa6c7e6fd72f9a01c41786333f0ce000 (patch) | |
tree | e1bd52bfaabe376841aa467314c6000e0e32a3c9 /src | |
parent | 22099863b4c8b94808e2f69e11a9e9465a5c9716 (diff) | |
download | coreutils-7082d762aa6c7e6fd72f9a01c41786333f0ce000.tar.xz |
(usage): Remove static attribute.
Move function be the first in the file.
Diffstat (limited to 'src')
-rw-r--r-- | src/nice.c | 49 |
1 files changed, 24 insertions, 25 deletions
diff --git a/src/nice.c b/src/nice.c index 457cffa38..fddb4a96e 100644 --- a/src/nice.c +++ b/src/nice.c @@ -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); -} |