From 276d118b10b6299f460131be7d45b5255fff36bd Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 25 Jan 1999 14:33:38 +0000 Subject: [PATCH] (usage): Remove static attribute. --- src/basename.c | 2 +- src/chroot.c | 2 +- src/dirname.c | 2 +- src/echo.c | 2 +- src/expr.c | 2 +- src/factor.c | 2 +- src/hostid.c | 2 +- src/hostname.c | 2 +- src/logname.c | 2 +- src/pinky.c | 2 +- src/printenv.c | 2 +- src/printf.c | 2 +- src/pwd.c | 2 +- src/seq.c | 2 +- src/sleep.c | 2 +- src/stty.c | 2 +- src/su.c | 2 +- src/tee.c | 2 +- src/test.c | 2 +- src/uptime.c | 2 +- src/users.c | 2 +- src/who.c | 2 +- src/whoami.c | 3 +-- src/yes.c | 2 +- 24 files changed, 24 insertions(+), 25 deletions(-) diff --git a/src/basename.c b/src/basename.c index beb46d2..c9aade6 100644 --- a/src/basename.c +++ b/src/basename.c @@ -39,7 +39,7 @@ void strip_trailing_slashes (); /* The name this program was run with. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/chroot.c b/src/chroot.c index 3298f3b..76cab53 100644 --- a/src/chroot.c +++ b/src/chroot.c @@ -28,7 +28,7 @@ /* The name this program was run with, for error messages. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/dirname.c b/src/dirname.c index cd18d46..0d4b7af 100644 --- a/src/dirname.c +++ b/src/dirname.c @@ -30,7 +30,7 @@ void strip_trailing_slashes (); /* The name this program was run with. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/echo.c b/src/echo.c index d1d4f4c..24e4de7 100644 --- a/src/echo.c +++ b/src/echo.c @@ -60,7 +60,7 @@ on System V systems with the -E option. /* The name this program was run with. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/expr.c b/src/expr.c index 09d5527..f7cd5ec 100644 --- a/src/expr.c +++ b/src/expr.c @@ -89,7 +89,7 @@ static void tostring PARAMS ((VALUE *v)); static void trace (); #endif -static void +void usage (int status) { if (status != 0) diff --git a/src/factor.c b/src/factor.c index 1ead217..f989398 100644 --- a/src/factor.c +++ b/src/factor.c @@ -41,7 +41,7 @@ /* The name this program was run with. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/hostid.c b/src/hostid.c index 558d6e4..5aa31a8 100644 --- a/src/hostid.c +++ b/src/hostid.c @@ -32,7 +32,7 @@ /* The name this program was run with, for error messages. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/hostname.c b/src/hostname.c index 0ff26fb..e4eeba8 100644 --- a/src/hostname.c +++ b/src/hostname.c @@ -50,7 +50,7 @@ char *xgethostname (); /* The name this program was run with. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/logname.c b/src/logname.c index d4f76e2..d666221 100644 --- a/src/logname.c +++ b/src/logname.c @@ -38,7 +38,7 @@ static struct option const long_options[] = {0, 0, 0, 0} }; -static void +void usage (int status) { if (status != 0) diff --git a/src/pinky.c b/src/pinky.c index 1a6ff35..e07e9f8 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -399,7 +399,7 @@ long_pinky (const int argc_names, char *const argv_names[]) print_long_entry (argv_names[i]); } -static void +void usage (int status) { if (status != 0) diff --git a/src/printenv.c b/src/printenv.c index 8a85157..dde55d0 100644 --- a/src/printenv.c +++ b/src/printenv.c @@ -54,7 +54,7 @@ static struct option const long_options[] = extern char **environ; -static void +void usage (int status) { if (status != 0) diff --git a/src/printf.c b/src/printf.c index 836937e..1ff15a9 100644 --- a/src/printf.c +++ b/src/printf.c @@ -78,7 +78,7 @@ static char *const cfcc_msg = /* The name this program was run with. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/pwd.c b/src/pwd.c index 73ec852..c1c67eb 100644 --- a/src/pwd.c +++ b/src/pwd.c @@ -30,7 +30,7 @@ char *xgetcwd (); /* The name this program was run with. */ char *program_name; -static void +void usage (int status) { if (status != 0) diff --git a/src/seq.c b/src/seq.c index 6de5335..f1f1704 100644 --- a/src/seq.c +++ b/src/seq.c @@ -74,7 +74,7 @@ static struct option const long_options[] = { NULL, 0, NULL, 0} }; -static void +void usage (int status) { if (status != 0) diff --git a/src/sleep.c b/src/sleep.c index 470b027..b0fc426 100644 --- a/src/sleep.c +++ b/src/sleep.c @@ -41,7 +41,7 @@ static struct option const long_options[] = {0, 0, 0, 0} }; -static void +void usage (int status) { if (status != 0) diff --git a/src/stty.c b/src/stty.c index 268c87a..dce9c98 100644 --- a/src/stty.c +++ b/src/stty.c @@ -476,7 +476,7 @@ wrapf (const char *message,...) current_col += buflen; } -static void +void usage (int status) { if (status != 0) diff --git a/src/su.c b/src/su.c index 7585db1..155efd4 100644 --- a/src/su.c +++ b/src/su.c @@ -423,7 +423,7 @@ restricted_shell (const char *shell) return 1; } -static void +void usage (int status) { if (status != 0) diff --git a/src/tee.c b/src/tee.c index eac1eab..b4b3553 100644 --- a/src/tee.c +++ b/src/tee.c @@ -55,7 +55,7 @@ static struct option const long_options[] = {NULL, 0, NULL, 0} }; -static void +void usage (int status) { if (status != 0) diff --git a/src/test.c b/src/test.c index 2fc3f4d..1608aa8 100644 --- a/src/test.c +++ b/src/test.c @@ -977,7 +977,7 @@ posixtest (void) #if defined (TEST_STANDALONE) # include "long-options.h" -static void +void usage (int status) { if (status != 0) diff --git a/src/uptime.c b/src/uptime.c index 493ae1d..c524962 100644 --- a/src/uptime.c +++ b/src/uptime.c @@ -152,7 +152,7 @@ uptime (const char *filename) print_uptime (n_users, utmp_buf); } -static void +void usage (int status) { if (status != 0) diff --git a/src/users.c b/src/users.c index 84f8b4e..c548249 100644 --- a/src/users.c +++ b/src/users.c @@ -105,7 +105,7 @@ users (const char *filename) list_entries_users (n_users, utmp_buf); } -static void +void usage (int status) { if (status != 0) diff --git a/src/who.c b/src/who.c index c9be13c..7fd98d0 100644 --- a/src/who.c +++ b/src/who.c @@ -347,7 +347,7 @@ who_am_i (const char *filename) print_entry (utmp_entry); } -static void +void usage (int status) { if (status != 0) diff --git a/src/whoami.c b/src/whoami.c index 9936a85..a41859c 100644 --- a/src/whoami.c +++ b/src/whoami.c @@ -42,7 +42,7 @@ static struct option const long_options[] = {0, 0, 0, 0} }; -static void +void usage (int status) { if (status != 0) @@ -95,7 +95,6 @@ main (int argc, char **argv) if (show_help) usage (0); - if (optind != argc) usage (1); diff --git a/src/yes.c b/src/yes.c index 244e56a..e7a0d09 100644 --- a/src/yes.c +++ b/src/yes.c @@ -28,7 +28,7 @@ /* The name this program was run with. */ char *program_name; -static void +void usage (int status) { if (status != 0) -- 2.7.4