projects
/
ircu2.10.12-pk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Author: Bleep <tomh@inxpress.net>
[ircu2.10.12-pk.git]
/
ircd
/
crypt
/
mkpasswd.c
diff --git
a/ircd/crypt/mkpasswd.c
b/ircd/crypt/mkpasswd.c
index ee65d9b0a85021eb1503838902184a755cc81c55..dfe6305e48c49b180dbff1be96f25fb4b641bb99 100644
(file)
--- a/
ircd/crypt/mkpasswd.c
+++ b/
ircd/crypt/mkpasswd.c
@@
-2,24
+2,14
@@
* copyright 1991, all rights reserved.
* You can use this code as long as my name stays with it.
*/
* copyright 1991, all rights reserved.
* You can use this code as long as my name stays with it.
*/
-
+#define _XOPEN_SOURCE
+#define _XOPEN_VERSION 4
+#define _XOPEN_SOURCE_EXTENDED
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
#include <time.h>
#include <time.h>
-#if HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
-#endif
-#include "../../config/setup.h"
-#if STDC_HEADERS
-# include <string.h>
-#else
-# ifndef HAVE_STRCHR
-# define strchr index
-# endif
-char *strchr();
-#endif
-
-extern char *getpass();
int main(int argc, char *argv[])
{
int main(int argc, char *argv[])
{