diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-23 18:49:16 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-07-23 18:49:16 +0000 |
commit | 64a8a3bd7498f515dc29f8fb2996c46acce0483a (patch) | |
tree | 4deb2ff8a9efe7298c0fee198f019d1441e29213 /loginutils/chpasswd.c | |
parent | 5bfcb4d5ae716befe06a1f8801551ae09a144e91 (diff) | |
download | busybox-w32-64a8a3bd7498f515dc29f8fb2996c46acce0483a.tar.gz busybox-w32-64a8a3bd7498f515dc29f8fb2996c46acce0483a.tar.bz2 busybox-w32-64a8a3bd7498f515dc29f8fb2996c46acce0483a.zip |
chpasswd: rename long options definition to match other applets. no code changes
Diffstat (limited to '')
-rw-r--r-- | loginutils/chpasswd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/loginutils/chpasswd.c b/loginutils/chpasswd.c index a4a9a554f..3e3e8d3d3 100644 --- a/loginutils/chpasswd.c +++ b/loginutils/chpasswd.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #if ENABLE_GETOPT_LONG | 11 | #if ENABLE_GETOPT_LONG |
12 | #include <getopt.h> | 12 | #include <getopt.h> |
13 | 13 | ||
14 | static const char chpasswd_opts[] = | 14 | static const char chpasswd_longopts[] = |
15 | "encrypted\0" No_argument "e" | 15 | "encrypted\0" No_argument "e" |
16 | "md5\0" No_argument "m" | 16 | "md5\0" No_argument "m" |
17 | "\0"; | 17 | "\0"; |
@@ -32,7 +32,7 @@ int chpasswd_main(int argc, char **argv) | |||
32 | bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); | 32 | bb_error_msg_and_die(bb_msg_perm_denied_are_you_root); |
33 | 33 | ||
34 | opt_complementary = "m--e:e--m"; | 34 | opt_complementary = "m--e:e--m"; |
35 | USE_GETOPT_LONG(applet_long_options = chpasswd_opts;) | 35 | USE_GETOPT_LONG(applet_long_options = chpasswd_longopts;) |
36 | opt = getopt32(argc, argv, "em"); | 36 | opt = getopt32(argc, argv, "em"); |
37 | 37 | ||
38 | while ((name = xmalloc_getline(stdin)) != NULL) { | 38 | while ((name = xmalloc_getline(stdin)) != NULL) { |