Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Oct 2021 04:56:10 GMT
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 4dbd8c72d303 - main - tcp_wrappers: get rid of duplicate fgets declarations
Message-ID:  <202110010456.1914uATv043250@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=4dbd8c72d3030b8f111fdac86ba45ff596595497

commit 4dbd8c72d3030b8f111fdac86ba45ff596595497
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-09-30 04:21:24 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-01 04:55:27 +0000

    tcp_wrappers: get rid of duplicate fgets declarations
    
    This is declared in stdio.h, no need for this one.
---
 contrib/tcp_wrappers/hosts_access.c | 1 -
 contrib/tcp_wrappers/misc.c         | 2 --
 2 files changed, 3 deletions(-)

diff --git a/contrib/tcp_wrappers/hosts_access.c b/contrib/tcp_wrappers/hosts_access.c
index f5ab91bebc98..58998055b516 100644
--- a/contrib/tcp_wrappers/hosts_access.c
+++ b/contrib/tcp_wrappers/hosts_access.c
@@ -46,7 +46,6 @@ static char sccsid[] = "@(#) hosts_access.c 1.21 97/02/12 02:13:22";
 #endif
 #include <stdlib.h>
 
-extern char *fgets();
 extern int errno;
 
 #ifndef	INADDR_NONE
diff --git a/contrib/tcp_wrappers/misc.c b/contrib/tcp_wrappers/misc.c
index 8f04f870e1b4..258d7091adce 100644
--- a/contrib/tcp_wrappers/misc.c
+++ b/contrib/tcp_wrappers/misc.c
@@ -19,8 +19,6 @@ static char sccsic[] = "@(#) misc.c 1.2 96/02/11 17:01:29";
 
 #include "tcpd.h"
 
-extern char *fgets();
-
 #ifndef	INADDR_NONE
 #define	INADDR_NONE	(-1)		/* XXX should be 0xffffffff */
 #endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110010456.1914uATv043250>