summaryrefslogtreecommitdiff
path: root/src/tac.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/tac.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/tac.c')
-rw-r--r--src/tac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tac.c b/src/tac.c
index f7a2479e1..8f3c94aab 100644
--- a/src/tac.c
+++ b/src/tac.c
@@ -103,9 +103,9 @@ static struct re_pattern_buffer compiled_separator;
static struct option const longopts[] =
{
- {"before", 0, &separator_ends_record, 0},
- {"regex", 0, &sentinel_length, 0},
- {"separator", 1, NULL, 's'},
+ {"before", no_argument, &separator_ends_record, 0},
+ {"regex", no_argument, &sentinel_length, 0},
+ {"separator", required_argument, NULL, 's'},
{NULL, 0, NULL, 0}
};