From aa084c8407f25ae04614735c02e088dc1a751521 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 2 Nov 1995 17:08:24 +0000 Subject: [PATCH] Protoize. --- src/unexpand.c | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/src/unexpand.c b/src/unexpand.c index cdd121a3d5..0fd738ad07 100644 --- a/src/unexpand.c +++ b/src/unexpand.c @@ -111,8 +111,7 @@ static struct option const longopts[] = if TABVAL is -1, do nothing. */ static void -add_tabstop (tabval) - int tabval; +add_tabstop (int tabval) { if (tabval == -1) return; @@ -125,8 +124,7 @@ add_tabstop (tabval) to the list of tabstops. */ static void -parse_tabstops (stops) - char *stops; +parse_tabstops (char *stops) { int tabval = -1; @@ -154,9 +152,7 @@ parse_tabstops (stops) contains only nonzero, ascending values. */ static void -validate_tabstops (tabs, entries) - int *tabs; - int entries; +validate_tabstops (int *tabs, int entries) { int prev_tab = 0; int i; @@ -177,8 +173,7 @@ validate_tabstops (tabs, entries) Return NULL if there are no more input files. */ static FILE * -next_file (fp) - FILE *fp; +next_file (FILE *fp) { static char *prev_file; char *file; @@ -223,7 +218,7 @@ next_file (fp) Read each file in `file_list', in order. */ static void -unexpand () +unexpand (void) { FILE *fp; /* Input stream. */ int c; /* Each input character. */ @@ -355,8 +350,7 @@ unexpand () } static void -usage (status) - int status; +usage (int status) { if (status != 0) fprintf (stderr, _("Try `%s --help' for more information.\n"), @@ -384,9 +378,7 @@ Instead of -t NUMBER or -t LIST, -NUMBER or -LIST may be used.\n\ } void -main (argc, argv) - int argc; - char **argv; +main (int argc, char **argv) { int tabval = -1; /* Value of tabstop being read, or -1. */ int c; /* Option character. */ -- 2.47.3