]> arthur.barton.de Git - netatalk.git/commitdiff
Warning fixes.
authorsrittau <srittau>
Wed, 11 Jun 2003 07:16:14 +0000 (07:16 +0000)
committersrittau <srittau>
Wed, 11 Jun 2003 07:16:14 +0000 (07:16 +0000)
etc/uams/uams_dhx_passwd.c
etc/uams/uams_passwd.c

index eb25e642d9dbc9e294faff3d60d0dc0a7bb6dc8e..e79047b13ebd3a8d09f81b421311b693ae1f420f 100644 (file)
@@ -1,13 +1,15 @@
 /*
- * $Id: uams_dhx_passwd.c,v 1.18 2003-02-11 16:41:56 didg Exp $
+ * $Id: uams_dhx_passwd.c,v 1.19 2003-06-11 07:16:14 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
  * All Rights Reserved.  See COPYRIGHT.
  */
 
+#define _XOPEN_SOURCE /* for crypt() */
+
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif /* HAVE_CONFIG_H */
 
 #include <stdio.h>
@@ -76,8 +78,10 @@ static int pwd_login(void *obj, char *username, int ulen, struct passwd **uam_pw
 #endif /* SHADOWPW */
     BIGNUM *bn, *gbn, *pbn;
     u_int16_t sessid;
-    int len, i;
+    int i;
+#if 0
     char *name;
+#endif
     DH *dh;
 
 #ifdef TRU64
index 235655c169868ec5410f20f927a3ae853536fe4b..5b38d5cd4db54f1bdb41b4c9e8345bf144c0f5f9 100644 (file)
@@ -1,13 +1,15 @@
 /*
- * $Id: uams_passwd.c,v 1.20 2003-05-14 15:13:50 didg Exp $
+ * $Id: uams_passwd.c,v 1.21 2003-06-11 07:16:14 srittau Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
  * All Rights Reserved.  See COPYRIGHT.
  */
 
+#define _XOPEN_SOURCE /* for crypt() */
+
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif /* HAVE_CONFIG_H */
 
 #include <stdio.h>