From de4de17bc5a6cd1a72704137f74a4d083ef02e5c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 31 Oct 1995 02:22:23 +0000 Subject: [PATCH] (usage, next_line_num, main): Protoize. --- src/cat.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/cat.c b/src/cat.c index a4421ee8c5..77dec0e2e1 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; -- 2.47.3