git: 9b6a8ee28d61 - main - tcp_wrappers: remove duplicate errno declarations

From: Piotr Pawel Stefaniak <pstef_at_FreeBSD.org>
Date: Wed, 23 Feb 2022 15:27:44 UTC
The branch main has been updated by pstef:

URL: https://cgit.FreeBSD.org/src/commit/?id=9b6a8ee28d612c43c232fce3493ae0efef613ddb

commit 9b6a8ee28d612c43c232fce3493ae0efef613ddb
Author:     Piotr Pawel Stefaniak <pstef@FreeBSD.org>
AuthorDate: 2022-02-13 18:19:25 +0000
Commit:     Piotr Pawel Stefaniak <pstef@FreeBSD.org>
CommitDate: 2022-02-23 15:26:14 +0000

    tcp_wrappers: remove duplicate errno declarations
---
 contrib/tcp_wrappers/hosts_access.c | 2 --
 contrib/tcp_wrappers/percent_m.c    | 1 -
 contrib/tcp_wrappers/tli-sequent.c  | 1 -
 contrib/tcp_wrappers/tli.c          | 1 -
 contrib/tcp_wrappers/workarounds.c  | 2 --
 5 files changed, 7 deletions(-)

diff --git a/contrib/tcp_wrappers/hosts_access.c b/contrib/tcp_wrappers/hosts_access.c
index 58998055b516..140225fabace 100644
--- a/contrib/tcp_wrappers/hosts_access.c
+++ b/contrib/tcp_wrappers/hosts_access.c
@@ -46,8 +46,6 @@ static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22";
 #endif
 #include <stdlib.h>
 
-extern int errno;
-
 #ifndef	INADDR_NONE
 #define	INADDR_NONE	(-1)		/* XXX should be 0xffffffff */
 #endif
diff --git a/contrib/tcp_wrappers/percent_m.c b/contrib/tcp_wrappers/percent_m.c
index bb11b22dd81f..1019b82d8c36 100644
--- a/contrib/tcp_wrappers/percent_m.c
+++ b/contrib/tcp_wrappers/percent_m.c
@@ -12,7 +12,6 @@ static char sccsid[] = "@(#) percent_m.c 1.1 94/12/28 17:42:37";
 #include <errno.h>
 #include <string.h>
 
-extern int errno;
 #ifndef SYS_ERRLIST_DEFINED
 extern char *sys_errlist[];
 extern int sys_nerr;
diff --git a/contrib/tcp_wrappers/tli-sequent.c b/contrib/tcp_wrappers/tli-sequent.c
index 8858966876a4..c0ad75685f4c 100644
--- a/contrib/tcp_wrappers/tli-sequent.c
+++ b/contrib/tcp_wrappers/tli-sequent.c
@@ -30,7 +30,6 @@ static char sccsid[] = "@(#) tli-sequent.c 1.1 94/12/28 17:42:51";
 #include <errno.h>
 #include <string.h>
 
-extern int errno;
 extern char *sys_errlist[];
 extern int sys_nerr;
 extern int t_errno;
diff --git a/contrib/tcp_wrappers/tli.c b/contrib/tcp_wrappers/tli.c
index 36d6f7eff398..d05f1156b0fb 100644
--- a/contrib/tcp_wrappers/tli.c
+++ b/contrib/tcp_wrappers/tli.c
@@ -41,7 +41,6 @@ static char sccsid[] = "@(#) tli.c 1.15 97/03/21 19:27:25";
 #include <string.h>
 
 extern char *nc_sperror();
-extern int errno;
 extern char *sys_errlist[];
 extern int sys_nerr;
 extern int t_errno;
diff --git a/contrib/tcp_wrappers/workarounds.c b/contrib/tcp_wrappers/workarounds.c
index 3d4e9e6783d1..38e653993f40 100644
--- a/contrib/tcp_wrappers/workarounds.c
+++ b/contrib/tcp_wrappers/workarounds.c
@@ -27,8 +27,6 @@ char    sccsid[] = "@(#) workarounds.c 1.6 96/03/19 16:22:25";
 #include <unistd.h>
 #endif
 
-extern int errno;
-
 #include "tcpd.h"
 
  /*