summaryrefslogtreecommitdiff
path: root/src/od.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/od.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/od.c')
-rw-r--r--src/od.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/od.c b/src/od.c
index d6b1c1b2f..eb6ffed31 100644
--- a/src/od.c
+++ b/src/od.c
@@ -254,15 +254,15 @@ static enum size_spec fp_type_size[MAX_FP_TYPE_SIZE + 1];
static struct option const long_options[] =
{
/* POSIX options. */
- {"skip-bytes", 1, NULL, 'j'},
- {"address-radix", 1, NULL, 'A'},
- {"read-bytes", 1, NULL, 'N'},
- {"format", 1, NULL, 't'},
- {"output-duplicates", 0, NULL, 'v'},
+ {"skip-bytes", required_argument, NULL, 'j'},
+ {"address-radix", required_argument, NULL, 'A'},
+ {"read-bytes", required_argument, NULL, 'N'},
+ {"format", required_argument, NULL, 't'},
+ {"output-duplicates", no_argument, NULL, 'v'},
/* non-POSIX options. */
- {"strings", 2, NULL, 's'},
- {"width", 2, NULL, 'w'},
+ {"strings", optional_argument, NULL, 's'},
+ {"width", optional_argument, NULL, 'w'},
{NULL, 0, NULL, 0}
};