]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Protoize.
authorJim Meyering <jim@meyering.net>
Thu, 2 Nov 1995 17:08:24 +0000 (17:08 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 2 Nov 1995 17:08:24 +0000 (17:08 +0000)
src/unexpand.c

index cdd121a3d5ad22ca80a3508830f5ea924a19a7fb..0fd738ad07389ab73c7db1238da7411d9e547a1a 100644 (file)
@@ -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. */