From cf67b27eccc58334ee50f92c6c0da37762511c80 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Wed, 8 Jan 2003 07:02:07 +0000 Subject: [PATCH] Add a declaration that malloc() returns a pointer, not an int. Otherwise this segfaults on ia64. (Cannot cast an int to a pointer). The rest of the code does it this way rather than use system includes.... --- contrib/tcp_wrappers/inetcf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/tcp_wrappers/inetcf.c b/contrib/tcp_wrappers/inetcf.c index c288196a714e..1ace3527fc7c 100644 --- a/contrib/tcp_wrappers/inetcf.c +++ b/contrib/tcp_wrappers/inetcf.c @@ -1,3 +1,4 @@ +/* $FreeBSD$ */ /* * Routines to parse an inetd.conf or tlid.conf file. This would be a great * job for a PERL script. @@ -17,6 +18,7 @@ static char sccsid[] = "@(#) inetcf.c 1.7 97/02/12 02:13:23"; extern int errno; extern void exit(); +extern char *malloc(); #include "tcpd.h" #include "inetcf.h"