summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-25 14:33:38 +0000
committerJim Meyering <jim@meyering.net>1999-01-25 14:33:38 +0000
commit276d118b10b6299f460131be7d45b5255fff36bd (patch)
tree43265950bbd102c56fa944fc52abb4b77ff2d6f4 /src
parentfe9d964a786b00ae60e1c17c5322595193e5a7c4 (diff)
downloadcoreutils-276d118b10b6299f460131be7d45b5255fff36bd.tar.xz
(usage): Remove static attribute.
Diffstat (limited to 'src')
-rw-r--r--src/basename.c2
-rw-r--r--src/chroot.c2
-rw-r--r--src/dirname.c2
-rw-r--r--src/echo.c2
-rw-r--r--src/expr.c2
-rw-r--r--src/factor.c2
-rw-r--r--src/hostid.c2
-rw-r--r--src/hostname.c2
-rw-r--r--src/logname.c2
-rw-r--r--src/pinky.c2
-rw-r--r--src/printenv.c2
-rw-r--r--src/printf.c2
-rw-r--r--src/pwd.c2
-rw-r--r--src/seq.c2
-rw-r--r--src/sleep.c2
-rw-r--r--src/stty.c2
-rw-r--r--src/su.c2
-rw-r--r--src/tee.c2
-rw-r--r--src/test.c2
-rw-r--r--src/uptime.c2
-rw-r--r--src/users.c2
-rw-r--r--src/who.c2
-rw-r--r--src/whoami.c3
-rw-r--r--src/yes.c2
24 files changed, 24 insertions, 25 deletions
diff --git a/src/basename.c b/src/basename.c
index beb46d2ec..c9aade6b6 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 3298f3b61..76cab5345 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 cd18d4605..0d4b7af94 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 d1d4f4c00..24e4de77b 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 09d5527d5..f7cd5ec46 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 1ead21784..f98939897 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 558d6e401..5aa31a843 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 0ff26fb1a..e4eeba810 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 d4f76e2cd..d66622116 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 1a6ff3524..e07e9f8bc 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 8a85157e3..dde55d094 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 836937e16..1ff15a934 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 73ec852eb..c1c67eba3 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 6de5335bc..f1f1704a3 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 470b02759..b0fc42636 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 268c87a1b..dce9c988f 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 7585db1ec..155efd422 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 eac1eab3b..b4b355368 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 2fc3f4d8e..1608aa8a2 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 493ae1df5..c52496272 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 84f8b4e05..c548249d8 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 c9be13c25..7fd98d0bf 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 9936a85af..a41859c95 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 244e56af0..e7a0d09a2 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)