#include stdlib.h to get malloc(3) and calloc(3) definitions.
authormillert <millert@openbsd.org>
Sun, 6 Apr 1997 20:15:45 +0000 (20:15 +0000)
committermillert <millert@openbsd.org>
Sun, 6 Apr 1997 20:15:45 +0000 (20:15 +0000)
Fixes compiler warnings.

usr.sbin/ipsend/common/ip.c
usr.sbin/ipsend/common/sbpf.c
usr.sbin/ipsend/ipresend/resend.c
usr.sbin/ipsend/ipsend/ipsend.c
usr.sbin/ipsend/iptest/iptest.c

index e05b4b9..9c4f832 100644 (file)
@@ -12,6 +12,7 @@ static        char    sccsid[] = "%W% %G% (C)1995";
 #endif
 #include <errno.h>
 #include <stdio.h>
+#include <stdlib.h>
 #include <sys/types.h>
 #include <netinet/in_systm.h>
 #include <sys/socket.h>
index b6a6d36..9bc557a 100644 (file)
@@ -6,6 +6,7 @@
  *
  */
 #include <stdio.h>
+#include <stdlib.h>
 #include <netdb.h>
 #include <ctype.h>
 #include <signal.h>
index 8d9d755..6762ae6 100644 (file)
@@ -11,6 +11,7 @@
 static char    sccsid[] = "@(#)resend.c        1.3 1/11/96 (C)1995 Darren Reed";
 #endif
 #include <stdio.h>
+#include <stdlib.h>
 #include <netdb.h>
 #include <string.h>
 #include <sys/types.h>
index 13e8967..84ea170 100644 (file)
@@ -18,6 +18,7 @@
 static char    sccsid[] = "@(#)ipsend.c        1.5 12/10/95 (C)1995 Darren Reed";
 #endif
 #include <stdio.h>
+#include <stdlib.h>
 #include <netdb.h>
 #include <string.h>
 #include <sys/types.h>
index bc87588..baa023d 100644 (file)
@@ -18,6 +18,7 @@
 static char    sccsid[] = "%W% %G% (C)1995 Darren Reed";
 #endif
 #include <stdio.h>
+#include <stdlib.h>
 #include <netdb.h>
 #include <string.h>
 #include <sys/types.h>