/*
- * $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)
*/
#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,
/*
- * $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)
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)
/*
- * $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)
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) {
/* 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);
}
char *rbuf, int *rbuflen)
{
u_int16_t sessid;
- int i;
+ unsigned int i;
*rbuflen = 0;