]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
(longopts): Use corresponding short-option character
authorJim Meyering <jim@meyering.net>
Sun, 30 Aug 1998 03:12:22 +0000 (03:12 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 30 Aug 1998 03:12:22 +0000 (03:12 +0000)
in place of `1', and `NULL' in place of pointer in initialization.

login-utils/su.c

index f0e0dd206edccb55510bf9c9667332e8dd80a565..6f9c381af0c9dc5657296f998f2812ab6bba4b10 100644 (file)
@@ -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},