diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-02-17 23:54:48 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-02-17 23:54:48 +0000 |
commit | 90b44520803cb30d9db888f46d36c484a622630e (patch) | |
tree | 11767cbbdb6eeab60a619bb4936d2b29cb89b045 | |
parent | 2f634fcf3f197c2025cb9ecfe92ff432c93a1504 (diff) |
From netbsd:
Removed "extern int errno"; Added #include <errno.h> if not already present.
-rw-r--r-- | games/adventure/main.c | 5 | ||||
-rw-r--r-- | games/caesar/caesar.c | 6 | ||||
-rw-r--r-- | games/cribbage/instr.c | 7 | ||||
-rw-r--r-- | games/dm/dm.c | 6 | ||||
-rw-r--r-- | games/hack/hack.unix.c | 5 | ||||
-rw-r--r-- | games/pom/pom.c | 6 | ||||
-rw-r--r-- | games/tetris/input.c | 3 |
7 files changed, 17 insertions, 21 deletions
diff --git a/games/adventure/main.c b/games/adventure/main.c index 3879ba60bf7..7bb25c2c1a4 100644 --- a/games/adventure/main.c +++ b/games/adventure/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.2 1995/03/21 12:05:07 cgd Exp $ */ +/* $NetBSD: main.c,v 1.3 1996/02/06 22:47:06 jtc Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -48,7 +48,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/2/93"; #else -static char rcsid[] = "$NetBSD: main.c,v 1.2 1995/03/21 12:05:07 cgd Exp $"; +static char rcsid[] = "$NetBSD: main.c,v 1.3 1996/02/06 22:47:06 jtc Exp $"; #endif #endif /* not lint */ @@ -63,7 +63,6 @@ main(argc,argv) int argc; char **argv; { - extern int errno; register int i; int rval,ll; struct text *kk; diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c index de5a2e8a620..80e41acf187 100644 --- a/games/caesar/caesar.c +++ b/games/caesar/caesar.c @@ -1,4 +1,4 @@ -/* $NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $ */ +/* $NetBSD: caesar.c,v 1.4 1996/02/06 22:47:15 jtc Exp $ */ /* * Copyright (c) 1989, 1993 @@ -51,7 +51,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $"; +static char rcsid[] = "$NetBSD: caesar.c,v 1.4 1996/02/06 22:47:15 jtc Exp $"; #endif #endif /* not lint */ @@ -59,6 +59,7 @@ static char rcsid[] = "$NetBSD: caesar.c,v 1.3 1995/03/21 15:08:21 cgd Exp $"; #include <stdio.h> #include <ctype.h> #include <unistd.h> +#include <errno.h> #define LINELENGTH 2048 #define ROTATE(ch, perm) \ @@ -79,7 +80,6 @@ main(argc, argv) int argc; char **argv; { - extern int errno; register int ch, dot, i, nread, winnerdot; register char *inbuf; int obs[26], try, winner; diff --git a/games/cribbage/instr.c b/games/cribbage/instr.c index b4ecda0d85d..de6944bd234 100644 --- a/games/cribbage/instr.c +++ b/games/cribbage/instr.c @@ -1,4 +1,4 @@ -/* $NetBSD: instr.c,v 1.3 1995/03/21 15:08:52 cgd Exp $ */ +/* $NetBSD: instr.c,v 1.4 1996/02/06 22:47:18 jtc Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,13 +37,12 @@ #if 0 static char sccsid[] = "@(#)instr.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: instr.c,v 1.3 1995/03/21 15:08:52 cgd Exp $"; +static char rcsid[] = "$NetBSD: instr.c,v 1.4 1996/02/06 22:47:18 jtc Exp $"; #endif #endif /* not lint */ #include <sys/types.h> #include <sys/wait.h> -#include <sys/errno.h> #include <sys/stat.h> #include <curses.h> @@ -51,6 +50,7 @@ static char rcsid[] = "$NetBSD: instr.c,v 1.3 1995/03/21 15:08:52 cgd Exp $"; #include <stdlib.h> #include <string.h> #include <unistd.h> +#include <errno.h> #include "deck.h" #include "cribbage.h" @@ -59,7 +59,6 @@ static char rcsid[] = "$NetBSD: instr.c,v 1.3 1995/03/21 15:08:52 cgd Exp $"; void instructions() { - extern int errno; struct stat sb; union wait pstat; pid_t pid; diff --git a/games/dm/dm.c b/games/dm/dm.c index 7dd82ef9934..69797ade005 100644 --- a/games/dm/dm.c +++ b/games/dm/dm.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm.c,v 1.4 1995/03/21 15:09:05 cgd Exp $ */ +/* $NetBSD: dm.c,v 1.5 1996/02/06 22:47:20 jtc Exp $ */ /* * Copyright (c) 1987, 1993 @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)dm.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: dm.c,v 1.4 1995/03/21 15:09:05 cgd Exp $"; +static char rcsid[] = "$NetBSD: dm.c,v 1.5 1996/02/06 22:47:20 jtc Exp $"; #endif #endif /* not lint */ @@ -60,10 +60,10 @@ static char rcsid[] = "$NetBSD: dm.c,v 1.4 1995/03/21 15:09:05 cgd Exp $"; #include <time.h> #include <unistd.h> #include <utmp.h> +#include <errno.h> #include "pathnames.h" -extern int errno; static time_t now; /* current time value */ static int priority = 0; /* priority game runs at */ static char *game, /* requested game */ 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); diff --git a/games/pom/pom.c b/games/pom/pom.c index 8a9f40f82bf..b154e1e1bb6 100644 --- a/games/pom/pom.c +++ b/games/pom/pom.c @@ -1,4 +1,4 @@ -/* $NetBSD: pom.c,v 1.5 1995/06/07 16:30:46 cgd Exp $ */ +/* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */ /* * Copyright (c) 1989, 1993 @@ -45,7 +45,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$NetBSD: pom.c,v 1.5 1995/06/07 16:30:46 cgd Exp $"; +static char rcsid[] = "$NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $"; #endif #endif /* not lint */ @@ -64,6 +64,7 @@ static char rcsid[] = "$NetBSD: pom.c,v 1.5 1995/06/07 16:30:46 cgd Exp $"; #include <string.h> #include <tzfile.h> #include <math.h> +#include <errno.h> #define PI 3.141592654 #define EPOCH 85 @@ -78,7 +79,6 @@ double dtor(), potm(), adj360(); main() { - extern int errno; struct timeval tp; struct timezone tzp; struct tm *GMT, *gmtime(); diff --git a/games/tetris/input.c b/games/tetris/input.c index abac0a93409..1f879419c42 100644 --- a/games/tetris/input.c +++ b/games/tetris/input.c @@ -1,4 +1,4 @@ -/* $NetBSD: input.c,v 1.2 1995/04/22 07:42:34 cgd Exp $ */ +/* $NetBSD: input.c,v 1.3 1996/02/06 22:47:33 jtc Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -80,7 +80,6 @@ rwait(tvp) { int i; struct timeval starttv, endtv, *s; - extern int errno; #define NILTZ ((struct timezone *)0) /* |