diff options
author | Jim Meyering <jim@meyering.net> | 1992-12-02 18:51:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1992-12-02 18:51:53 +0000 |
commit | 9d2ef3292f106ad2a374780c001fcf844ef62144 (patch) | |
tree | 94ad8796ff3d289f38c912e3750780f72f5d71a5 /src/su.c | |
parent | 60edc4537b04bb59858ba135063e0f09c0296feb (diff) | |
download | coreutils-9d2ef3292f106ad2a374780c001fcf844ef62144.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/su.c')
-rw-r--r-- | src/su.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -164,11 +164,11 @@ static int change_environment; static struct option const longopts[] = { - {"command", 1, 0, 'c'}, - {"fast", 0, &fast_startup, 1}, - {"login", 0, &simulate_login, 1}, - {"preserve-environment", 0, &change_environment, 0}, - {"shell", 1, 0, 's'}, + {"command", required_argument, 0, 'c'}, + {"fast", no_argument, &fast_startup, 1}, + {"login", no_argument, &simulate_login, 1}, + {"preserve-environment", no_argument, &change_environment, 0}, + {"shell", required_argument, 0, 's'}, {0, 0, 0, 0} }; |