Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > media > core-src > by-pkgid > 263ab8cbec57b61e269eb00897516bd3 > files > 1

hping2-2.0.0-alt4.rc2.src.rpm

diff -ubr hping2-rc2/datafiller.c hping2-rc2.my/datafiller.c
--- hping2-rc2/datafiller.c	2001-08-18 12:04:20 +0400
+++ hping2-rc2.my/datafiller.c	2004-02-13 13:19:12 +0300
@@ -14,6 +14,7 @@
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <string.h> /* memset */
+#include <stdlib.h> /* exit */
 
 #include "hping2.h"
 #include "globals.h"
diff -ubr hping2-rc2/getifname.c hping2-rc2.my/getifname.c
--- hping2-rc2/getifname.c	2002-03-28 18:33:08 +0300
+++ hping2-rc2.my/getifname.c	2004-02-13 13:23:01 +0300
@@ -14,6 +14,7 @@
 #include <arpa/inet.h>		/* inet_ntoa */
 #include <net/if.h>
 #include <unistd.h>		/* close */
+#include <stdlib.h>		/* exit */
 
 #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
 #include <stdlib.h>
diff -ubr hping2-rc2/libpcap_stuff.c hping2-rc2.my/libpcap_stuff.c
--- hping2-rc2/libpcap_stuff.c	2001-08-23 22:49:39 +0400
+++ hping2-rc2.my/libpcap_stuff.c	2004-02-13 13:25:54 +0300
@@ -14,9 +14,11 @@
 #if (!defined OSTYPE_LINUX) || (defined FORCE_LIBPCAP)
 #include <stdio.h>
 #include <stdlib.h>
+#include <stdlib.h> /* exit */
+#include <string.h>  /* memcoy */
 #include <sys/ioctl.h>
 #include <pcap.h>
-#include <net/bpf.h>
+#include <pcap-bpf.h>
 
 #include "globals.h"
 
diff -ubr hping2-rc2/listen.c hping2-rc2.my/listen.c
--- hping2-rc2/listen.c	2001-08-19 15:53:35 +0400
+++ hping2-rc2.my/listen.c	2004-02-13 13:24:19 +0300
@@ -11,6 +11,7 @@
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdlib.h> /* exit */
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
diff -ubr hping2-rc2/resolve.c hping2-rc2.my/resolve.c
--- hping2-rc2/resolve.c	2001-08-14 01:23:55 +0400
+++ hping2-rc2.my/resolve.c	2004-02-13 13:20:06 +0300
@@ -15,6 +15,7 @@
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
+#include <stdlib.h> /* exit */
 
 void resolve (struct sockaddr * addr, char *hostname)
 {
diff -ubr hping2-rc2/statistics.c hping2-rc2.my/statistics.c
--- hping2-rc2/statistics.c	2001-04-03 14:10:50 +0400
+++ hping2-rc2.my/statistics.c	2004-02-13 13:22:22 +0300
@@ -9,6 +9,7 @@
  */ 
 
 #include <stdio.h>
+#include <stdlib.h> /* exit */
 
 #include "hping2.h"
 #include "globals.h"
diff -ubr hping2-rc2/usage.c hping2-rc2.my/usage.c
--- hping2-rc2/usage.c	2002-01-19 21:32:16 +0300
+++ hping2-rc2.my/usage.c	2004-02-13 13:24:40 +0300
@@ -9,6 +9,7 @@
  */ 
 
 #include <stdio.h>
+#include <stdlib.h> /* exit */
 
 void	show_usage(void)
 {
diff -ubr hping2-rc2/version.c hping2-rc2.my/version.c
--- hping2-rc2/version.c	2001-04-03 14:10:50 +0400
+++ hping2-rc2.my/version.c	2004-02-13 13:26:31 +0300
@@ -9,6 +9,7 @@
  */ 
 
 #include <stdio.h>
+#include <stdlib.h> /* exit */
 
 #include "release.h"
 #include "hping2.h"
diff -ubr hping2-rc2/waitpacket.c hping2-rc2.my/waitpacket.c
--- hping2-rc2/waitpacket.c	2002-11-20 13:02:11 +0300
+++ hping2-rc2.my/waitpacket.c	2004-02-13 13:21:57 +0300
@@ -13,6 +13,7 @@
 #include <time.h>
 #include <ctype.h>
 #include <unistd.h>
+#include <stdlib.h> /* exit */
 
 #include "hping2.h"
 #include "globals.h"