From 46b902da5252697ebfccc29f3d5525122fbf1033 Mon Sep 17 00:00:00 2001 From: jtc Date: Tue, 6 Feb 1996 22:47:06 +0000 Subject: Removed "extern int errno"; Added #include if not already present. --- hack/hack.unix.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'hack/hack.unix.c') diff --git a/hack/hack.unix.c b/hack/hack.unix.c index 86308446..10c0e660 100644 --- a/hack/hack.unix.c +++ b/hack/hack.unix.c @@ -3,7 +3,7 @@ */ #ifndef lint -static char rcsid[] = "$NetBSD: hack.unix.c,v 1.3 1995/03/23 08:31:55 cgd Exp $"; +static char rcsid[] = "$NetBSD: hack.unix.c,v 1.4 1996/02/06 22:47:25 jtc Exp $"; #endif /* not lint */ /* This file collects some Unix dependencies; hack.pager.c contains some more */ @@ -158,7 +158,6 @@ veryold(fd) { if(buf.st_size != sizeof(int)) return(0); /* not an xlock file */ (void) time(&date); if(date - buf.st_mtime < 3L*24L*60L*60L) { /* recent */ - extern int errno; int lockedpid; /* should be the same size as hackpid */ if(read(fd, (char *)&lockedpid, sizeof(lockedpid)) != @@ -184,7 +183,7 @@ veryold(fd) { getlock() { - extern int errno, hackpid, locknum; + extern int hackpid, locknum; register int i = 0, fd; (void) fflush(stdout); -- cgit v1.2.3-56-ge451