summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-31 02:22:23 +0000
committerJim Meyering <jim@meyering.net>1995-10-31 02:22:23 +0000
commitde4de17bc5a6cd1a72704137f74a4d083ef02e5c (patch)
tree6daaf76b6e596a7a988e5bb34b1295ea19d4d949 /src
parentb0302bb3a61f0a8cebe324fb7cc80b166bd0d249 (diff)
downloadcoreutils-de4de17bc5a6cd1a72704137f74a4d083ef02e5c.tar.xz
(usage, next_line_num, main): Protoize.
Diffstat (limited to 'src')
-rw-r--r--src/cat.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/cat.c b/src/cat.c
index a4421ee8c..77dec0e2e 100644
--- a/src/cat.c
+++ b/src/cat.c
@@ -76,8 +76,7 @@ static int newlines2 = 0;
static int exit_stat = 0;
static void
-usage (status)
- int status;
+usage (int status)
{
if (status != 0)
fprintf (stderr, _("Try `%s --help' for more information.\n"),
@@ -113,7 +112,7 @@ With no FILE, or when FILE is -, read standard input.\n\
/* Compute the next line number. */
static void
-next_line_num ()
+next_line_num (void)
{
char *endp = line_num_end;
do
@@ -441,9 +440,7 @@ cat (
}
void
-main (argc, argv)
- int argc;
- char *argv[];
+main (int argc, char **argv)
{
/* Optimal size of i/o operations of output. */
int outsize;