summaryrefslogtreecommitdiff
path: root/games/hack/hack.unix.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-17 23:54:48 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-02-17 23:54:48 +0000
commit90b44520803cb30d9db888f46d36c484a622630e (patch)
tree11767cbbdb6eeab60a619bb4936d2b29cb89b045 /games/hack/hack.unix.c
parent2f634fcf3f197c2025cb9ecfe92ff432c93a1504 (diff)
From netbsd:
Removed "extern int errno"; Added #include <errno.h> if not already present.
Diffstat (limited to 'games/hack/hack.unix.c')
-rw-r--r--games/hack/hack.unix.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/games/hack/hack.unix.c b/games/hack/hack.unix.c
index 86308446eba..174248ad58c 100644
--- a/games/hack/hack.unix.c
+++ b/games/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);