diff options
author | Marco d'Itri <md@linux.it> | 2008-12-09 02:08:35 +0100 |
---|---|---|
committer | Marco d'Itri <md@linux.it> | 2013-03-30 02:31:36 +0100 |
commit | bd837394e6557fba50f55a93e7dc5390d2879638 (patch) | |
tree | f8cad4bd0976191cb7603e4a9cd28ca57d6606c5 /mkpasswd.c | |
parent | 8032d7b7f67fe2d2d64645f45d5cccb6440fc393 (diff) | |
download | whois-bd837394e6557fba50f55a93e7dc5390d2879638.tar.gz |
Imported Debian version 4.7.29v4.7.29
Diffstat (limited to 'mkpasswd.c')
-rw-r--r-- | mkpasswd.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -54,6 +54,9 @@ static const struct option longopts[] = { {"version", no_argument, NULL, 'V'}, {NULL, 0, NULL, 0 } }; +#else +extern char *optarg; +extern int optind; #endif static const char valid_salts[] = "abcdefghijklmnopqrstuvwxyz" @@ -125,7 +128,8 @@ int main(int argc, char *argv[]) /* prepend options from environment */ argv = merge_args(getenv("MKPASSWD_OPTIONS"), argv, &argc); - while ((ch = GETOPT_LONGISH(argc, argv, "hH:m:P:R:sSV", longopts, 0)) > 0) { + while ((ch = GETOPT_LONGISH(argc, argv, "hH:m:P:R:sS:V", longopts, 0)) + > 0) { switch (ch) { case 'm': case 'H': |