From: Jim Meyering Date: Mon, 25 Jan 1999 14:28:31 +0000 (+0000) Subject: (usage): Remove static attribute. X-Git-Tag: TEXTUTILS-1_22h~101 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7082d762aa6c7e6fd72f9a01c41786333f0ce000;p=thirdparty%2Fcoreutils.git (usage): Remove static attribute. Move function be the first in the file. --- diff --git a/src/nice.c b/src/nice.c index 457cffa38d..fddb4a96e1 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 .")); + } + 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 .")); - } - exit (status); -}