From: Sascha Wildner Date: Wed, 6 Nov 2013 18:11:00 +0000 (+0100) Subject: tcpd(8): Make it compile with -std=gnu99. X-Git-Tag: v3.7.1~9 X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/commitdiff_plain/d37f1b57dcde8b5327e5dbf772d1103f3f57774c tcpd(8): Make it compile with -std=gnu99. --- diff --git a/contrib/tcp_wrappers/tcpd.c b/contrib/tcp_wrappers/tcpd.c index 6e9049f0c4..ab367c216a 100644 --- a/contrib/tcp_wrappers/tcpd.c +++ b/contrib/tcp_wrappers/tcpd.c @@ -10,7 +10,6 @@ * Author: Wietse Venema, Eindhoven University of Technology, The Netherlands. * * $FreeBSD: src/contrib/tcp_wrappers/tcpd.c,v 1.2 2000/02/03 10:26:59 shin Exp $ - * $DragonFly: src/contrib/tcp_wrappers/tcpd.c,v 1.2 2003/06/17 04:24:06 dillon Exp $ */ #ifndef lint @@ -27,6 +26,7 @@ static char sccsid[] = "@(#) tcpd.c 1.10 96/02/11 17:01:32"; #include #include #include +#include #ifndef MAXPATHNAMELEN #define MAXPATHNAMELEN BUFSIZ @@ -44,6 +44,7 @@ static char sccsid[] = "@(#) tcpd.c 1.10 96/02/11 17:01:32"; int allow_severity = SEVERITY; /* run-time adjustable */ int deny_severity = LOG_WARNING; /* ditto */ +int main(argc, argv) int argc; char **argv; diff --git a/libexec/tcpd/Makefile b/libexec/tcpd/Makefile index f36909c156..1306303539 100644 --- a/libexec/tcpd/Makefile +++ b/libexec/tcpd/Makefile @@ -2,7 +2,6 @@ PROG= tcpd MAN= tcpd.8 -CSTD?= gnu89 WARNS?= 1 CFLAGS+=-DREAL_DAEMON_DIR=\"/usr/libexec\" \