summaryrefslogtreecommitdiff
path: root/src/uniq.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1992-12-02 18:31:56 +0000
committerJim Meyering <jim@meyering.net>1992-12-02 18:31:56 +0000
commiteb3a2516dba78740843793f755af412f24ac5330 (patch)
treef6d6f8c876d373ff98a21e69c08c4a2a194fc360 /src/uniq.c
parentf9a9be97e1792fb13bcd72b1bf82414bdb615788 (diff)
downloadcoreutils-eb3a2516dba78740843793f755af412f24ac5330.tar.xz
Convert static declarations of struct option to use new macros from
getopt.h: no_argument, required_argument, and optional_argument.
Diffstat (limited to 'src/uniq.c')
-rw-r--r--src/uniq.c12
1 files changed, 6 insertions, 6 deletions
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}
};