summaryrefslogtreecommitdiff
path: root/mkpasswd.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2008-12-09 02:08:35 +0100
committerMarco d'Itri <md@linux.it>2013-03-30 02:31:36 +0100
commitbd837394e6557fba50f55a93e7dc5390d2879638 (patch)
treef8cad4bd0976191cb7603e4a9cd28ca57d6606c5 /mkpasswd.c
parent8032d7b7f67fe2d2d64645f45d5cccb6440fc393 (diff)
downloadwhois-bd837394e6557fba50f55a93e7dc5390d2879638.tar.gz
Imported Debian version 4.7.29v4.7.29
Diffstat (limited to 'mkpasswd.c')
-rw-r--r--mkpasswd.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mkpasswd.c b/mkpasswd.c
index 6faa188..94cf455 100644
--- a/mkpasswd.c
+++ b/mkpasswd.c
@@ -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':