summaryrefslogtreecommitdiff
path: root/src/wc.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/wc.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/wc.c')
-rw-r--r--src/wc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wc.c b/src/wc.c
index f2d791824..5bb4f2405 100644
--- a/src/wc.c
+++ b/src/wc.c
@@ -49,10 +49,10 @@ static int exit_status;
static struct option const longopts[] =
{
- {"bytes", 0, NULL, 'c'},
- {"chars", 0, NULL, 'c'},
- {"lines", 0, NULL, 'l'},
- {"words", 0, NULL, 'w'},
+ {"bytes", no_argument, NULL, 'c'},
+ {"chars", no_argument, NULL, 'c'},
+ {"lines", no_argument, NULL, 'l'},
+ {"words", no_argument, NULL, 'w'},
{NULL, 0, NULL, 0}
};