]> andersk Git - moira.git/blobdiff - lib/idno.c
POSIX, ANSI, sanity fixes
[moira.git] / lib / idno.c
index be166df2ba7279e9fb416117ab6ed351eae6a33b..e98222a62b4d1a2e39d4abe36c7d9fc752b1d19d 100644 (file)
 #include <mit-copyright.h>
 #include <string.h>
 #include <ctype.h>
-
+#ifdef POSIX
+#include <unistd.h>
+#endif
+#ifdef USE_CRYPT_H
+#include <crypt.h>
+#endif
 
 /*     Function Name: RemoveHyphens
  *     Description: Removes all hyphens from the string passed to it.
@@ -42,7 +47,6 @@ EncryptID(sbuf, idnumber, first, last)
 char *sbuf, *idnumber, *first, *last;
 {
     char salt[3];
-    extern char *crypt();
 
     RemoveHyphens(idnumber);
     salt[0] = tolower(last[0]);
This page took 0.030418 seconds and 4 git commands to generate.