summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2003-01-08 07:02:07 +0000
committerpeter <peter@FreeBSD.org>2003-01-08 07:02:07 +0000
commited1e3e5b4cf61947c859f70fab8449a5036b4b19 (patch)
tree1cb2eebc4a90920ce757119aa8684c02c93ed385 /contrib
parent45d9788d10588b62ecb4aa760a3314f3f9531c94 (diff)
downloadFreeBSD-src-ed1e3e5b4cf61947c859f70fab8449a5036b4b19.zip
FreeBSD-src-ed1e3e5b4cf61947c859f70fab8449a5036b4b19.tar.gz
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....
Diffstat (limited to 'contrib')
-rw-r--r--contrib/tcp_wrappers/inetcf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/tcp_wrappers/inetcf.c b/contrib/tcp_wrappers/inetcf.c
index c288196..1ace352 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"
OpenPOWER on IntegriCloud