]> arthur.barton.de Git - netatalk.git/blobdiff - etc/uams/uams_passwd.c
Remove a lot of warning, from cvs HEAD
[netatalk.git] / etc / uams / uams_passwd.c
index a43a7962887ab0a601ac1791b5b9e2fa58beff70..b5e561fbe3fbcf5b45f95ea60ccc800a5ed5b78e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: uams_passwd.c,v 1.19.2.1.2.7 2004-02-20 20:53:14 bfernhomberg Exp $
+ * $Id: uams_passwd.c,v 1.19.2.1.2.9.2.1 2005-09-27 10:40:41 didg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
 #include <config.h>
 #endif /* HAVE_CONFIG_H */
 
-/* crypt needs _XOPEN_SOURCE 500 at least on BSD, but that breaks Solaris compile */
-#ifndef SOLARIS
+#include <sys/types.h>
+/* crypt needs _XOPEN_SOURCE (500) at least on BSD, but that breaks Solaris compile */
+#ifdef NETBSD
 #define _XOPEN_SOURCE 500 /* for crypt() */
 #endif
+#ifdef FREEBSD
+#define _XOPEN_SOURCE /* for crypt() */
+#endif
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -71,7 +75,7 @@ extern void append(void *, const char *, int);
 
 static int pwd_login(void *obj, char *username, int ulen, struct passwd **uam_pwd,
                         char *ibuf, int ibuflen,
-                        char *rbuf, int *rbuflen)
+                        char *rbuf _U_, int *rbuflen _U_)
 {
     char  *p;
     struct passwd *pwd;