From 57e56eb7ecaf708b248af8faebd972a0ce6f03c1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 2 Dec 1992 18:55:36 +0000 Subject: Convert static declarations of struct option to use new macros from getopt.h: no_argument, required_argument, and optional_argument. --- src/mkdir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mkdir.c') diff --git a/src/mkdir.c b/src/mkdir.c index d8de4aff2..00bde815f 100644 --- a/src/mkdir.c +++ b/src/mkdir.c @@ -46,8 +46,8 @@ char *program_name; static struct option const longopts[] = { - {"mode", 1, NULL, 'm'}, - {"path", 0, &path_mode, 1}, + {"mode", required_argument, NULL, 'm'}, + {"path", no_argument, &path_mode, 1}, {NULL, 0, NULL, 0} }; -- cgit v1.2.3-54-g00ecf