39 lines
1 KiB
Text
39 lines
1 KiB
Text
$NetBSD: patch-ab,v 1.3 2006/07/21 16:19:58 minskim Exp $
|
|
|
|
--- bing.c.orig 1995-07-20 23:45:32.000000000 +0000
|
|
+++ bing.c
|
|
@@ -155,7 +155,7 @@ static char rcsid[] = "bing.c,v 1.16 199
|
|
#include <sys/socket.h>
|
|
#include <sys/file.h>
|
|
#include <sys/time.h>
|
|
-#include <sys/signal.h>
|
|
+#include <signal.h>
|
|
|
|
#include <netinet/in_systm.h>
|
|
#include <netinet/in.h>
|
|
@@ -169,6 +169,7 @@ static char rcsid[] = "bing.c,v 1.16 199
|
|
#include <stdio.h>
|
|
#include <ctype.h>
|
|
#include <errno.h>
|
|
+#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <limits.h>
|
|
|
|
@@ -1221,7 +1222,7 @@ int main(argc, argv)
|
|
int argc;
|
|
char **argv;
|
|
{
|
|
- extern int errno, optind;
|
|
+ extern int optind;
|
|
extern char *optarg;
|
|
struct protoent *proto;
|
|
struct in_addr ifaddr;
|
|
@@ -1230,7 +1231,7 @@ int main(argc, argv)
|
|
int i;
|
|
int ch, hold, recv_packlen, preload;
|
|
u_char *datap, *recv_packet;
|
|
- char *target1, *target2, *malloc();
|
|
+ char *target1, *target2;
|
|
u_char ttl, loop;
|
|
#ifdef IP_OPTIONS
|
|
char rspace[3 + 4 * NROUTES + 1]; /* record route space */
|