summaryrefslogtreecommitdiff
path: root/src/nl.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/nl.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/nl.c')
-rw-r--r--src/nl.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/nl.c b/src/nl.c
index 09ff8d2b9..233a6f26a 100644
--- a/src/nl.c
+++ b/src/nl.c
@@ -150,17 +150,17 @@ static void build_print_fmt ();
static struct option const longopts[] =
{
- {"header-numbering", 1, NULL, 'h'},
- {"body-numbering", 1, NULL, 'b'},
- {"footer-numbering", 1, NULL, 'f'},
- {"first-page", 1, NULL, 'v'},
- {"page-increment", 1, NULL, 'i'},
- {"no-renumber", 0, NULL, 'p'},
- {"join-blank-lines", 1, NULL, 'l'},
- {"number-separator", 1, NULL, 's'},
- {"number-width", 1, NULL, 'w'},
- {"number-format", 1, NULL, 'n'},
- {"section-delimiter", 1, NULL, 'd'},
+ {"header-numbering", required_argument, NULL, 'h'},
+ {"body-numbering", required_argument, NULL, 'b'},
+ {"footer-numbering", required_argument, NULL, 'f'},
+ {"first-page", required_argument, NULL, 'v'},
+ {"page-increment", required_argument, NULL, 'i'},
+ {"no-renumber", no_argument, NULL, 'p'},
+ {"join-blank-lines", required_argument, NULL, 'l'},
+ {"number-separator", required_argument, NULL, 's'},
+ {"number-width", required_argument, NULL, 'w'},
+ {"number-format", required_argument, NULL, 'n'},
+ {"section-delimiter", required_argument, NULL, 'd'},
{NULL, 0, NULL, 0}
};