summaryrefslogtreecommitdiff
path: root/src/tail.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/tail.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/tail.c')
-rw-r--r--src/tail.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/tail.c b/src/tail.c
index e3aa464fe..969488b7b 100644
--- a/src/tail.c
+++ b/src/tail.c
@@ -117,12 +117,12 @@ static int have_read_stdin;
static struct option const long_options[] =
{
- {"bytes", 1, NULL, 'c'},
- {"follow", 0, NULL, 'f'},
- {"lines", 1, NULL, 'n'},
- {"quiet", 0, NULL, 'q'},
- {"silent", 0, NULL, 'q'},
- {"verbose", 0, NULL, 'v'},
+ {"bytes", required_argument, NULL, 'c'},
+ {"follow", no_argument, NULL, 'f'},
+ {"lines", required_argument, NULL, 'n'},
+ {"quiet", no_argument, NULL, 'q'},
+ {"silent", no_argument, NULL, 'q'},
+ {"verbose", no_argument, NULL, 'v'},
{NULL, 0, NULL, 0}
};