summaryrefslogtreecommitdiff
path: root/src/tty.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-01-06 11:44:05 +0000
committerJim Meyering <jim@meyering.net>1996-01-06 11:44:05 +0000
commit53398947a1482e8b83e204186969af6147eaae6e (patch)
treebf4de064df1f022c2e01051b45cafc454ed839c4 /src/tty.c
parent5e14cce7ae90f69cf4609b7731377e934e79c219 (diff)
downloadcoreutils-53398947a1482e8b83e204186969af6147eaae6e.tar.xz
Protoize and __P-protect forward dcls.
Diffstat (limited to 'src/tty.c')
-rw-r--r--src/tty.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/tty.c b/src/tty.c
index 29d279df1..598606339 100644
--- a/src/tty.c
+++ b/src/tty.c
@@ -31,7 +31,7 @@
#include "version.h"
#include "error.h"
-static void usage ();
+static void usage __P ((int status));
/* The name under which this program was run. */
char *program_name;
@@ -55,9 +55,7 @@ static struct option const longopts[] =
};
void
-main (argc, argv)
- int argc;
- char **argv;
+main (int argc, char **argv)
{
char *tty;
int optc;
@@ -109,8 +107,7 @@ main (argc, argv)
}
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),