git: 045612012ebf - stable/13 - tcp_wrappers: get rid of duplicate fgets declarations

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Wed, 06 Oct 2021 07:14:59 UTC
The branch stable/13 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=045612012ebf91d63a09ef67771c93aed6f7bd84

commit 045612012ebf91d63a09ef67771c93aed6f7bd84
Author:     Kyle Evans <kevans@FreeBSD.org>
AuthorDate: 2021-09-30 04:21:24 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-06 07:14:43 +0000

    tcp_wrappers: get rid of duplicate fgets declarations
    
    This is declared in stdio.h, no need for this one.
    
    (cherry picked from commit 4dbd8c72d3030b8f111fdac86ba45ff596595497)
---
 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