git: e0414a826c21 - stable/13 - tcp_wrappers: remove duplicate errno declarations
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Mar 2022 18:53:56 UTC
The branch stable/13 has been updated by pstef: URL: https://cgit.FreeBSD.org/src/commit/?id=e0414a826c21210045a5441282cab07aec89bace commit e0414a826c21210045a5441282cab07aec89bace Author: Piotr Pawel Stefaniak <pstef@FreeBSD.org> AuthorDate: 2022-02-13 18:19:25 +0000 Commit: Piotr Pawel Stefaniak <pstef@FreeBSD.org> CommitDate: 2022-03-22 18:33:33 +0000 tcp_wrappers: remove duplicate errno declarations (cherry picked from commit 9b6a8ee28d612c43c232fce3493ae0efef613ddb) --- 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" /*