summaryrefslogtreecommitdiff
path: root/src/ptx.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-14 18:25:16 +0000
committerJim Meyering <jim@meyering.net>1999-01-14 18:25:16 +0000
commit9fec9172beaf67d1e16ae13b1f3ac44135cc8363 (patch)
treed787cf23dce38b0e2af16cc93c345f106c095801 /src/ptx.c
parentda258119328fe4af0e0aa0d6f292600732aa0bb4 (diff)
downloadcoreutils-9fec9172beaf67d1e16ae13b1f3ac44135cc8363.tar.xz
Don't prototype usage as static.
Diffstat (limited to 'src/ptx.c')
-rw-r--r--src/ptx.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/ptx.c b/src/ptx.c
index b086cb925..215c47531 100644
--- 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);
}
}