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....
This commit is contained in:
Peter Wemm 2003-01-08 07:02:07 +00:00
parent 9610ca7451
commit cf67b27ecc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108930

View file

@ -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"