summaryrefslogtreecommitdiffstats
path: root/login-utils/su.c
diff options
context:
space:
mode:
authorJim Meyering1992-12-02 19:51:53 +0100
committerJim Meyering1992-12-02 19:51:53 +0100
commita261f05865d1e354e4c9b0a8db1599daf8116304 (patch)
tree562a7e3b4a8941f10d174f017c789593712ffde4 /login-utils/su.c
parentall files: make most variables static and const when possible. (diff)
downloadkernel-qcow2-util-linux-a261f05865d1e354e4c9b0a8db1599daf8116304.tar.gz
kernel-qcow2-util-linux-a261f05865d1e354e4c9b0a8db1599daf8116304.tar.xz
kernel-qcow2-util-linux-a261f05865d1e354e4c9b0a8db1599daf8116304.zip
Convert static declarations of struct option to use new macros from
getopt.h: no_argument, required_argument, and optional_argument.
Diffstat (limited to 'login-utils/su.c')
-rw-r--r--login-utils/su.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/login-utils/su.c b/login-utils/su.c
index bc33f1539..ff2bfe5fc 100644
--- a/login-utils/su.c
+++ b/login-utils/su.c
@@ -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}
};