From 9d2ef3292f106ad2a374780c001fcf844ef62144 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 2 Dec 1992 18:51:53 +0000 Subject: Convert static declarations of struct option to use new macros from getopt.h: no_argument, required_argument, and optional_argument. --- src/id.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/id.c') diff --git a/src/id.c b/src/id.c index e7aa8835d..a6708fbe4 100644 --- a/src/id.c +++ b/src/id.c @@ -92,11 +92,11 @@ static int problems = 0; static struct option const longopts[] = { - {"group", 0, NULL, 'g'}, - {"name", 0, NULL, 'n'}, - {"real", 0, NULL, 'r'}, - {"user", 0, NULL, 'u'}, - {"groups", 0, NULL, 'G'}, + {"group", no_argument, NULL, 'g'}, + {"name", no_argument, NULL, 'n'}, + {"real", no_argument, NULL, 'r'}, + {"user", no_argument, NULL, 'u'}, + {"groups", no_argument, NULL, 'G'}, {NULL, 0, NULL, 0} }; -- cgit v1.2.3-54-g00ecf