]> arthur.barton.de Git - netatalk.git/commitdiff
warning fixes
authorbfernhomberg <bfernhomberg>
Sat, 10 Jan 2004 08:01:36 +0000 (08:01 +0000)
committerbfernhomberg <bfernhomberg>
Sat, 10 Jan 2004 08:01:36 +0000 (08:01 +0000)
etc/uams/uams_guest.c
etc/uams/uams_passwd.c
etc/uams/uams_randnum.c

index 2b7697456eff3525c7aea3754269bddff904dab3..21d0d7698c7fbd412e5b83a3415c8d826961c90c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: uams_guest.c,v 1.12 2003-03-12 15:07:03 didg Exp $
+ * $Id: uams_guest.c,v 1.12.6.1 2004-01-10 08:01:36 bfernhomberg Exp $
  *
  * (c) 2001 (see COPYING)
  */
@@ -34,6 +34,8 @@ char *strchr (), *strrchr ();
 #include <atalk/afp.h>
 #include <atalk/uam.h>
 
+extern void append(void *, const char *, int);
+
 /* login and login_ext are almost the same */
 static int noauth_login(void *obj, struct passwd **uam_pwd,
                        char *ibuf, int ibuflen, 
index 5518e6a140bda4a32af7a6ec8eef328fe1e10687..e9a5df05068015887f221fffbf8aa20b831af42a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: uams_passwd.c,v 1.19.2.1.2.4 2003-10-30 06:43:45 bfernhomberg Exp $
+ * $Id: uams_passwd.c,v 1.19.2.1.2.5 2004-01-10 08:01:36 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
@@ -63,6 +63,8 @@ char *strchr (), *strrchr ();
 static char *clientname;
 #endif /* TRU64 */
 
+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)
index d1225d88f584e383c162074f75c591606e470157..442b7aa0ff44b7f0a907c7028605e6e8a7125675 100644 (file)
@@ -1,5 +1,5 @@
 /* 
- * $Id: uams_randnum.c,v 1.12.6.1 2003-09-11 23:49:30 bfernhomberg Exp $
+ * $Id: uams_randnum.c,v 1.12.6.2 2004-01-10 08:01:36 bfernhomberg Exp $
  *
  * Copyright (c) 1990,1993 Regents of The University of Michigan.
  * Copyright (c) 1999 Adrian Sun (asun@u.washington.edu) 
@@ -152,7 +152,8 @@ static int afppasswd(const struct passwd *pwd,
   char buf[MAXPATHLEN + 1], *p;
   Key_schedule schedule;
   FILE *fp;
-  int i, j, keyfd = -1, err = 0;
+  unsigned int i, j;
+  int keyfd = -1, err = 0;
   off_t pos;
   
   if ((fp = fopen(path, (set) ? "r+" : "r")) == NULL) {
@@ -162,7 +163,7 @@ static int afppasswd(const struct passwd *pwd,
   
   /* open the key file if it exists */
   strcpy(buf, path);
-  if (pathlen < sizeof(buf) - 5) {
+  if (pathlen < (int) sizeof(buf) - 5) {
     strcat(buf, ".key");
     keyfd = open(buf, O_RDONLY);
   } 
@@ -407,7 +408,7 @@ static int rand2num_logincont(void *obj, struct passwd **uam_pwd,
                              char *rbuf, int *rbuflen)
 {
   u_int16_t sessid;
-  int i;
+  unsigned int i;
 
   *rbuflen = 0;