1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$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)
|