Don't prototype usage as static.
authorJim Meyering <jim@meyering.net>
Thu, 14 Jan 1999 18:25:16 +0000 (18:25 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 14 Jan 1999 18:25:16 +0000 (18:25 +0000)
26 files changed:
src/cat.c
src/cksum.c
src/comm.c
src/csplit.c
src/cut.c
src/expand.c
src/fmt.c
src/fold.c
src/head.c
src/join.c
src/md5sum.c
src/nl.c
src/od.c
src/paste.c
src/pr.c
src/ptx.c
src/sort.c
src/split.c
src/sum.c
src/tac.c
src/tail.c
src/tr.c
src/tsort.c
src/unexpand.c
src/uniq.c
src/wc.c

index a278a95..8fe48e6 100644 (file)
--- a/src/cat.c
+++ b/src/cat.c
@@ -72,7 +72,7 @@ static int newlines2 = 0;
 /* Count of non-fatal error conditions.  */
 static int exit_status = 0;
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 81d745d..ad38982 100644 (file)
@@ -260,7 +260,7 @@ cksum (char *file, int print_name)
   return 0;
 }
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index ef27f81..f2cf995 100644 (file)
@@ -57,7 +57,7 @@ static struct option const long_options[] =
 
 \f
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index fe007eb..17fca15 100644 (file)
@@ -123,7 +123,7 @@ static void close_output_file PARAMS ((void));
 static void create_output_file PARAMS ((void));
 static void delete_all_files PARAMS ((void));
 static void save_line_to_file PARAMS ((const struct cstring *line));
-static void usage PARAMS ((int status));
+void usage PARAMS ((int status));
 
 /* The name this program was run with. */
 char *program_name;
@@ -1496,7 +1496,7 @@ main (int argc, char **argv)
   exit (EXIT_SUCCESS);
 }
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 801e8b8..e8047c9 100644 (file)
--- a/src/cut.c
+++ b/src/cut.c
@@ -187,7 +187,7 @@ static struct option const longopts[] =
   {0, 0, 0, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 84f589a..ecb4590 100644 (file)
@@ -98,7 +98,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index f0f7108..b944e36 100644 (file)
--- a/src/fmt.c
+++ b/src/fmt.c
@@ -262,7 +262,7 @@ static int next_prefix_indent;
    paragraphs chosen by fmt_paragraph().  */
 static int last_line_length;
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 14868b3..e51bdde 100644 (file)
@@ -55,7 +55,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 474ff8b..a698c2d 100644 (file)
@@ -76,7 +76,7 @@ static struct option const long_options[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
@@ -342,7 +342,6 @@ main (int argc, char **argv)
 
     }
 
-
   while ((c = getopt_long (argc, argv, "c:n:qv", long_options, NULL)) != -1)
     {
       switch (c)
index 72264f3..30c27c5 100644 (file)
@@ -127,7 +127,7 @@ static struct line uni_blank;
 /* If nonzero, ignore case when comparing join fields.  */
 static int ignore_case;
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 5e364b5..4803285 100644 (file)
@@ -93,7 +93,7 @@ static const struct option long_options[] =
   { NULL, 0, NULL, 0 }
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index c0f3500..cd4ce56 100644 (file)
--- a/src/nl.c
+++ b/src/nl.c
@@ -165,7 +165,7 @@ static struct option const longopts[] =
 
 /* Print a usage message and quit. */
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 71545ec..1b4cf65 100644 (file)
--- a/src/od.c
+++ b/src/od.c
@@ -37,7 +37,6 @@ typedef long double LONG_DOUBLE;
 typedef double LONG_DOUBLE;
 #endif
 
-
 #if HAVE_VALUES_H
 # include <values.h>
 #endif
@@ -264,7 +263,7 @@ static struct option const long_options[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 4136133..21f7a0c 100644 (file)
@@ -399,7 +399,7 @@ paste_serial (int nfiles, char **fnamptr)
   return errors;
 }
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index ed524f9..c4c6790 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
@@ -29,7 +29,6 @@
 
    Improve the printing of control prefixes.
 
-
    Options:
 
    +FIRST_PAGE[:LAST_PAGE]
@@ -270,7 +269,7 @@ static void pad_across_to PARAMS ((int position));
 static void add_line_number PARAMS ((COLUMN *p));
 static void getoptarg PARAMS ((char *arg, char switch_char, char *character,
                               int *number));
-static void usage PARAMS ((int status));
+void usage PARAMS ((int status));
 static void print_files PARAMS ((int number_of_files, char **av));
 static void init_parameters PARAMS ((int number_of_files));
 static void init_header PARAMS ((char *filename, int desc));
@@ -2438,7 +2437,7 @@ cleanup (void)
 \f
 /* Complain, print a usage message, and die. */
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index b086cb9..215c475 100644 (file)
--- a/src/ptx.c
+++ b/src/ptx.c
@@ -176,7 +176,6 @@ int maximum_word_length;
 /* Maximum width of any reference used.  */
 int reference_max_width;
 
-
 /* Ignore and Only word tables.  */
 
 WORD_TABLE ignore_table;       /* table of words to ignore */
@@ -269,7 +268,6 @@ size_t number_of_occurs[1]; /* number of used slots in occurs_table */
 #define ALLOC_NEW_OCCURS(language) \
   BUMP_ALLOC (occurs_table[language], number_of_occurs[language], 9, OCCURS)
 
-
 /* Communication among output routines.  */
 
 /* Indicate if special output processing is requested for each character.  */
@@ -1810,7 +1808,6 @@ generate_all_output (void)
   int occurs_index;            /* index of keyword entry being processed */
   OCCURS *occurs_cursor;       /* current keyword entry being processed */
 
-
   /* The following assignments are useful to provide default values in case
      line contexts or references are not used, in which case these variables
      would never be computed.  */
@@ -1823,7 +1820,6 @@ generate_all_output (void)
   head.end = NULL;
   head_truncation = 0;
 
-
   /* Loop over all keyword occurrences.  */
 
   occurs_cursor = occurs_table[0];
@@ -1867,7 +1863,7 @@ generate_all_output (void)
 | Print program identification and options, then exit.  |
 `------------------------------------------------------*/
 
-static void
+void
 usage (int status)
 {
   if (status != EXIT_SUCCESS)
@@ -2064,8 +2060,8 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n"),
          break;
 
        case 10:
-         XARGMATCH (&output_format, "--format", optarg,
-                    format_args, format_vals, usage (1));
+         output_format = XARGMATCH ("--format", optarg,
+                                    format_args, format_vals);
        }
     }
 
index 6e76059..9636547 100644 (file)
@@ -269,7 +269,7 @@ static int have_read_stdin;
 /* Lists of key field comparisons to be tried. */
 static struct keyfield keyhead;
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 288ee5e..938c5d1 100644 (file)
@@ -77,7 +77,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index bb97e10..2a956c5 100644 (file)
--- a/src/sum.c
+++ b/src/sum.c
@@ -51,7 +51,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index b984170..b547296 100644 (file)
--- a/src/tac.c
+++ b/src/tac.c
@@ -109,7 +109,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index a8edb57..90d8d49 100644 (file)
@@ -183,7 +183,7 @@ static struct option const long_options[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
@@ -1268,8 +1268,8 @@ parse_options (int argc, char **argv,
          if (optarg == NULL)
            follow_mode = DEFAULT_FOLLOW_MODE;
          else
-           XARGMATCH (&follow_mode, "--follow", optarg,
-                      follow_mode_string, follow_mode_map, usage (1));
+           follow_mode = XARGMATCH ("--follow", optarg,
+                                    follow_mode_string, follow_mode_map);
          break;
 
        case CHAR_MAX + 1:
index 88d1700..def9a37 100644 (file)
--- a/src/tr.c
+++ b/src/tr.c
@@ -315,7 +315,7 @@ static struct option const long_options[] =
   {NULL, 0, NULL, 0}
 };
 \f
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 418532d..270632f 100644 (file)
@@ -77,7 +77,7 @@ static struct option const long_options[] =
   { NULL, 0, NULL, 0}
 };
 \f
-static void
+void
 usage (int status)
 {
   if (status != 0)
@@ -446,7 +446,6 @@ tsort (const char *file)
     }
 }
 
-
 int
 main (int argc, char **argv)
 {
index 5c47024..7768c14 100644 (file)
@@ -351,7 +351,7 @@ unexpand (void)
     }
 }
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index d02790c..9514fa1 100644 (file)
@@ -90,7 +90,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)
index 9571fd9..8e20e91 100644 (file)
--- a/src/wc.c
+++ b/src/wc.c
@@ -71,7 +71,7 @@ static struct option const longopts[] =
   {NULL, 0, NULL, 0}
 };
 
-static void
+void
 usage (int status)
 {
   if (status != 0)