]> jfr.im git - solanum.git/blobdiff - tools/mkpasswd.c
WHOIS: Make hide_opers_in_whois not affect opers doing whois.
[solanum.git] / tools / mkpasswd.c
index 958d6dff1cf1b842d44db52dc4444120cb8f78de..4f80b970a4fd24e3db4879ac94709e3748844d46 100644 (file)
@@ -55,9 +55,6 @@ static void brief_usage(void);
 static char saltChars[] = "./0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
        /* 0 .. 63, ascii - 64 */
 
-extern char *optarg;
-
-
 #ifdef __MINGW32__
 #include <conio.h>
 #ifdef PASS_MAX
@@ -72,7 +69,7 @@ getpass(const char *prompt)
        int c;
        int i = 0;
 
-       memset(getpassbuf, sizeof(getpassbuf), 0);
+       memset(getpassbuf, 0, sizeof(getpassbuf));
        fputs(prompt, stderr);
        for(;;)
        {