diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-02-01 03:24:15 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-02-01 03:24:15 +0000 |
commit | 376a7976c0a22002c6750673c39178e703bed58b (patch) | |
tree | 3b4a8322b9b5e1e7e175d003e4ecf149fba0ce24 /usr.bin | |
parent | 28d59da957500734c9a5139d0d9bd7eea82eb36d (diff) |
no need to extern int errno if errno.h is included
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/make/compat.c | 5 | ||||
-rw-r--r-- | usr.bin/make/job.c | 6 | ||||
-rw-r--r-- | usr.bin/more/more.c | 3 | ||||
-rw-r--r-- | usr.bin/quota/quota.c | 6 | ||||
-rw-r--r-- | usr.bin/rsh/rsh.c | 5 | ||||
-rw-r--r-- | usr.bin/sup/src/scm.c | 3 | ||||
-rw-r--r-- | usr.bin/sup/src/scmio.c | 3 | ||||
-rw-r--r-- | usr.bin/sup/src/supfilesrv.c | 3 | ||||
-rw-r--r-- | usr.bin/tftp/tftp.c | 5 | ||||
-rw-r--r-- | usr.bin/tn3270/sys_curses/system.c | 5 | ||||
-rw-r--r-- | usr.bin/uudecode/uudecode.c | 5 |
11 files changed, 19 insertions, 30 deletions
diff --git a/usr.bin/make/compat.c b/usr.bin/make/compat.c index 9fa192e3bb4..f23713bc9a8 100644 --- a/usr.bin/make/compat.c +++ b/usr.bin/make/compat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: compat.c,v 1.20 1999/12/18 21:58:07 espie Exp $ */ +/* $OpenBSD: compat.c,v 1.21 2000/02/01 03:23:32 deraadt Exp $ */ /* $NetBSD: compat.c,v 1.14 1996/11/06 17:59:01 christos Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: compat.c,v 1.20 1999/12/18 21:58:07 espie Exp $"; +static char rcsid[] = "$OpenBSD: compat.c,v 1.21 2000/02/01 03:23:32 deraadt Exp $"; #endif #endif /* not lint */ @@ -71,7 +71,6 @@ static char rcsid[] = "$OpenBSD: compat.c,v 1.20 1999/12/18 21:58:07 espie Exp $ #include "hash.h" #include "dir.h" #include "job.h" -extern int errno; /* * The following array is used to make a fast determination of which diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c index ee245405c54..4c6224708cd 100644 --- a/usr.bin/make/job.c +++ b/usr.bin/make/job.c @@ -1,4 +1,4 @@ -/* $OpenBSD: job.c,v 1.22 2000/01/20 18:14:58 espie Exp $ */ +/* $OpenBSD: job.c,v 1.23 2000/02/01 03:23:32 deraadt Exp $ */ /* $NetBSD: job.c,v 1.16 1996/11/06 17:59:08 christos Exp $ */ /* @@ -43,7 +43,7 @@ #if 0 static char sccsid[] = "@(#)job.c 8.2 (Berkeley) 3/19/94"; #else -static char rcsid[] = "$OpenBSD: job.c,v 1.22 2000/01/20 18:14:58 espie Exp $"; +static char rcsid[] = "$OpenBSD: job.c,v 1.23 2000/02/01 03:23:32 deraadt Exp $"; #endif #endif /* not lint */ @@ -128,7 +128,6 @@ static char rcsid[] = "$OpenBSD: job.c,v 1.22 2000/01/20 18:14:58 espie Exp $"; # define STATIC static #endif -extern int errno; /* * error handling variables @@ -1597,7 +1596,6 @@ JobRestart(job) * resume it. */ Boolean error; - extern int errno; int status; #ifdef RMT_WANTS_SIGNALS diff --git a/usr.bin/more/more.c b/usr.bin/more/more.c index b8b49c9645f..ab6f546ad7d 100644 --- a/usr.bin/more/more.c +++ b/usr.bin/more/more.c @@ -1,4 +1,4 @@ -/* $OpenBSD: more.c,v 1.10 1999/08/17 09:13:16 millert Exp $ */ +/* $OpenBSD: more.c,v 1.11 2000/02/01 03:23:34 deraadt Exp $ */ /*- * Copyright (c) 1980 The Regents of the University of California. * All rights reserved. @@ -1634,7 +1634,6 @@ retry: readch () { char ch; - extern int errno; errno = 0; if (read (2, &ch, 1) <= 0) diff --git a/usr.bin/quota/quota.c b/usr.bin/quota/quota.c index b1fab92fc2d..7d689881f97 100644 --- a/usr.bin/quota/quota.c +++ b/usr.bin/quota/quota.c @@ -1,4 +1,4 @@ -/* $OpenBSD: quota.c,v 1.13 1999/08/06 20:41:07 deraadt Exp $ */ +/* $OpenBSD: quota.c,v 1.14 2000/02/01 03:23:36 deraadt Exp $ */ /* * Copyright (c) 1980, 1990, 1993 @@ -44,7 +44,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)quota.c 8.1 (Berkeley) 6/6/93";*/ -static char rcsid[] = "$OpenBSD: quota.c,v 1.13 1999/08/06 20:41:07 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: quota.c,v 1.14 2000/02/01 03:23:36 deraadt Exp $"; #endif /* not lint */ /* @@ -96,7 +96,7 @@ main(argc, argv) int i, gflag = 0, uflag = 0; int ch; extern char *optarg; - extern int optind, errno; + extern int optind; while ((ch = getopt(argc, argv, "ugvq")) != -1) { switch(ch) { diff --git a/usr.bin/rsh/rsh.c b/usr.bin/rsh/rsh.c index b2905d43b72..faa38bf262b 100644 --- a/usr.bin/rsh/rsh.c +++ b/usr.bin/rsh/rsh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsh.c,v 1.18 2000/01/27 05:27:42 itojun Exp $ */ +/* $OpenBSD: rsh.c,v 1.19 2000/02/01 03:23:37 deraadt Exp $ */ /*- * Copyright (c) 1983, 1990 The Regents of the University of California. @@ -41,7 +41,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rsh.c 5.24 (Berkeley) 7/1/91";*/ -static char rcsid[] = "$OpenBSD: rsh.c,v 1.18 2000/01/27 05:27:42 itojun Exp $"; +static char rcsid[] = "$OpenBSD: rsh.c,v 1.19 2000/02/01 03:23:37 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -92,7 +92,6 @@ void talk __P((int, int, int, register int)); /* * rsh - remote shell */ -extern int errno; int rfd2; int diff --git a/usr.bin/sup/src/scm.c b/usr.bin/sup/src/scm.c index 36a1a3408d5..d027ffadc6e 100644 --- a/usr.bin/sup/src/scm.c +++ b/usr.bin/sup/src/scm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scm.c,v 1.8 1997/10/12 20:29:55 beck Exp $ */ +/* $OpenBSD: scm.c,v 1.9 2000/02/01 03:23:40 deraadt Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -175,7 +175,6 @@ #define INADDR_LOOPBACK (u_long)0x7f000001 /* 127.0.0.1 */ #endif -extern int errno; char scmversion[] = "4.3 BSD"; extern int silent; diff --git a/usr.bin/sup/src/scmio.c b/usr.bin/sup/src/scmio.c index 4d02d51a0ee..9cd3911439a 100644 --- a/usr.bin/sup/src/scmio.c +++ b/usr.bin/sup/src/scmio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scmio.c,v 1.3 1997/04/01 07:35:24 todd Exp $ */ +/* $OpenBSD: scmio.c,v 1.4 2000/02/01 03:23:40 deraadt Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -157,7 +157,6 @@ #include "supextern.h" #include "supmsg.h" -extern int errno; /************************* *** M A C R O S *** diff --git a/usr.bin/sup/src/supfilesrv.c b/usr.bin/sup/src/supfilesrv.c index 2590c1eaed4..e59cb9f8c9f 100644 --- a/usr.bin/sup/src/supfilesrv.c +++ b/usr.bin/sup/src/supfilesrv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: supfilesrv.c,v 1.16 2000/01/21 00:26:48 millert Exp $ */ +/* $OpenBSD: supfilesrv.c,v 1.17 2000/02/01 03:23:40 deraadt Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -191,7 +191,6 @@ #define MSGFILE #include "supmsg.h" -extern int errno; int maxchildren; /* diff --git a/usr.bin/tftp/tftp.c b/usr.bin/tftp/tftp.c index eeb57d71938..03de5d72732 100644 --- a/usr.bin/tftp/tftp.c +++ b/usr.bin/tftp/tftp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftp.c,v 1.4 1997/08/06 06:43:45 deraadt Exp $ */ +/* $OpenBSD: tftp.c,v 1.5 2000/02/01 03:23:42 deraadt Exp $ */ /* $NetBSD: tftp.c,v 1.5 1995/04/29 05:55:25 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)tftp.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: tftp.c,v 1.4 1997/08/06 06:43:45 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: tftp.c,v 1.5 2000/02/01 03:23:42 deraadt Exp $"; #endif /* not lint */ /* Many bug fixes are from Jim Guyton <guyton@rand-unix> */ @@ -64,7 +64,6 @@ static char rcsid[] = "$OpenBSD: tftp.c,v 1.4 1997/08/06 06:43:45 deraadt Exp $" #include "extern.h" #include "tftpsubs.h" -extern int errno; extern struct sockaddr_in peeraddr; /* filled in by main */ extern int f; /* the opened socket */ diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c index 4e6ffded463..800913deaba 100644 --- a/usr.bin/tn3270/sys_curses/system.c +++ b/usr.bin/tn3270/sys_curses/system.c @@ -1,4 +1,4 @@ -/* $OpenBSD: system.c,v 1.7 1998/07/12 08:54:29 deraadt Exp $ */ +/* $OpenBSD: system.c,v 1.8 2000/02/01 03:23:44 deraadt Exp $ */ /*- * Copyright (c) 1988 The Regents of the University of California. @@ -35,7 +35,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/ -static char rcsid[] = "$OpenBSD: system.c,v 1.7 1998/07/12 08:54:29 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: system.c,v 1.8 2000/02/01 03:23:44 deraadt Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -58,7 +58,6 @@ static char rcsid[] = "$OpenBSD: system.c,v 1.7 1998/07/12 08:54:29 deraadt Exp #include <sys/wait.h> #include <errno.h> -extern int errno; #include <netdb.h> #include <signal.h> diff --git a/usr.bin/uudecode/uudecode.c b/usr.bin/uudecode/uudecode.c index 9cd42de775a..f517d2fece9 100644 --- a/usr.bin/uudecode/uudecode.c +++ b/usr.bin/uudecode/uudecode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uudecode.c,v 1.7 1998/09/15 15:59:44 millert Exp $ */ +/* $OpenBSD: uudecode.c,v 1.8 2000/02/01 03:23:46 deraadt Exp $ */ /* $NetBSD: uudecode.c,v 1.6 1994/11/17 07:40:43 jtc Exp $ */ /*- @@ -42,7 +42,7 @@ char copyright[] = #if 0 static char sccsid[] = "@(#)uudecode.c 8.2 (Berkeley) 4/2/94"; #endif -static char rcsid[] = "$OpenBSD: uudecode.c,v 1.7 1998/09/15 15:59:44 millert Exp $"; +static char rcsid[] = "$OpenBSD: uudecode.c,v 1.8 2000/02/01 03:23:46 deraadt Exp $"; #endif /* not lint */ /* @@ -112,7 +112,6 @@ main(argc, argv) static int decode(int tostdout) { - extern int errno; struct passwd *pw; register int n; register char ch, *p; |