25 lines
675 B
Text
25 lines
675 B
Text
$NetBSD: patch-ai,v 1.3 2006/04/11 15:08:38 joerg Exp $
|
|
|
|
--- sbr/ruserpass.c.orig 2006-04-11 13:37:37.000000000 +0000
|
|
+++ sbr/ruserpass.c
|
|
@@ -25,9 +25,10 @@ static char sccsid[] = "@(#)ruserpass.c
|
|
#include <ctype.h>
|
|
#include <pwd.h>
|
|
#include <errno.h>
|
|
+#include <string.h>
|
|
+#include <stdlib.h>
|
|
|
|
-char *malloc(), *index(), *getenv(), *getpass(), *getlogin();
|
|
-char *strcpy();
|
|
+char *index(), *getpass(), *getlogin();
|
|
static FILE *cfile;
|
|
|
|
#ifndef MAXHOSTNAMELEN
|
|
@@ -66,7 +67,6 @@ ruserpass(host, aname, apass)
|
|
char myname[MAXHOSTNAMELEN], *mydomain;
|
|
int t, i, c, usedefault = 0;
|
|
struct stat stb;
|
|
- extern int errno;
|
|
|
|
hdir = getenv("HOME");
|
|
if (hdir == NULL)
|