summaryrefslogtreecommitdiffstats
path: root/hack/hack.unix.c
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1996-02-06 22:47:06 +0000
committerjtc <jtc@NetBSD.org>1996-02-06 22:47:06 +0000
commit46b902da5252697ebfccc29f3d5525122fbf1033 (patch)
treef7c6fcdeb002325c6f5303f8bbe64561e7226af0 /hack/hack.unix.c
parentde10823315b591023db0037ec148e6f7f8e647bc (diff)
downloadbsdgames-darwin-46b902da5252697ebfccc29f3d5525122fbf1033.tar.gz
bsdgames-darwin-46b902da5252697ebfccc29f3d5525122fbf1033.tar.zst
bsdgames-darwin-46b902da5252697ebfccc29f3d5525122fbf1033.zip
Removed "extern int errno"; Added #include <errno.h> if not already present.
Diffstat (limited to 'hack/hack.unix.c')
-rw-r--r--hack/hack.unix.c5
1 files changed, 2 insertions, 3 deletions
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);