summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-08-30 03:12:22 +0000
committerJim Meyering <jim@meyering.net>1998-08-30 03:12:22 +0000
commit5c6991f93de8b30e52847b27feeb68d5832a04fe (patch)
tree87aa14c2fa7e47018e781d4a5b5ad25d7581c9c7
parent9e9d7be7062fe64f05638bdb8f407c3d0ce2423f (diff)
downloadcoreutils-5c6991f93de8b30e52847b27feeb68d5832a04fe.tar.xz
(longopts): Use corresponding short-option character
in place of `1', and `NULL' in place of pointer in initialization.
-rw-r--r--src/su.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/su.c b/src/su.c
index f0e0dd206..6f9c381af 100644
--- a/src/su.c
+++ b/src/su.c
@@ -1,5 +1,5 @@
/* su for GNU. Run a shell with substitute user and group IDs.
- Copyright (C) 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
+ Copyright (C) 92, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -170,9 +170,9 @@ static int change_environment;
static struct option const longopts[] =
{
{"command", required_argument, 0, 'c'},
- {"fast", no_argument, &fast_startup, 1},
+ {"fast", no_argument, NULL, 'f'},
{"help", no_argument, &show_help, 1},
- {"login", no_argument, &simulate_login, 1},
+ {"login", no_argument, NULL, 'l'},
{"preserve-environment", no_argument, &change_environment, 0},
{"shell", required_argument, 0, 's'},
{"version", no_argument, &show_version, 1},