From eb3a2516dba78740843793f755af412f24ac5330 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 2 Dec 1992 18:31:56 +0000 Subject: Convert static declarations of struct option to use new macros from getopt.h: no_argument, required_argument, and optional_argument. --- src/uniq.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/uniq.c') diff --git a/src/uniq.c b/src/uniq.c index 339b2aead..1b8e8e4d3 100644 --- a/src/uniq.c +++ b/src/uniq.c @@ -73,12 +73,12 @@ char *program_name; static struct option const longopts[] = { - {"count", 0, NULL, 'c'}, - {"repeated", 0, NULL, 'd'}, - {"unique", 0, NULL, 'u'}, - {"skip-fields", 1, NULL, 'f'}, - {"skip-chars", 1, NULL, 's'}, - {"check-chars", 1, NULL, 'w'}, + {"count", no_argument, NULL, 'c'}, + {"repeated", no_argument, NULL, 'd'}, + {"unique", no_argument, NULL, 'u'}, + {"skip-fields", required_argument, NULL, 'f'}, + {"skip-chars", required_argument, NULL, 's'}, + {"check-chars", required_argument, NULL, 'w'}, {NULL, 0, NULL, 0} }; -- cgit v1.2.3-54-g00ecf