diff options
author | Marcelo Góes <vanquirius@gentoo.org> | 2005-04-10 18:08:03 +0000 |
---|---|---|
committer | Marcelo Góes <vanquirius@gentoo.org> | 2005-04-10 18:08:03 +0000 |
commit | 2668a6659b66d3a4dc3feb529c8fc159e1242572 (patch) | |
tree | 7971557c76fe00cd8c16f3395ee3847959984300 /net-analyzer/isic/files | |
parent | Marked stable on mips. (diff) | |
download | gentoo-2-2668a6659b66d3a4dc3feb529c8fc159e1242572.tar.gz gentoo-2-2668a6659b66d3a4dc3feb529c8fc159e1242572.tar.bz2 gentoo-2-2668a6659b66d3a4dc3feb529c8fc159e1242572.zip |
gcc-4 fix
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-analyzer/isic/files')
-rw-r--r-- | net-analyzer/isic/files/isic-0.06-gcc4.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/net-analyzer/isic/files/isic-0.06-gcc4.patch b/net-analyzer/isic/files/isic-0.06-gcc4.patch new file mode 100644 index 000000000000..a2b9087650bd --- /dev/null +++ b/net-analyzer/isic/files/isic-0.06-gcc4.patch @@ -0,0 +1,50 @@ +diff -urN ../tmp-orig/isic-0.05/icmpsic.c ./icmpsic.c +--- ../tmp-orig/isic-0.05/icmpsic.c 2000-01-25 18:35:25.000000000 +0100 ++++ ./icmpsic.c 2004-12-20 14:29:04.714661648 +0100 +@@ -253,7 +253,7 @@ + + payload = (short int *)((u_char *) icmp + 4); + for(cx = 0; cx <= (payload_s >> 1); cx+=1) +- (u_short) payload[cx] = rand() & 0xffff; ++ payload[cx] = rand() & 0xffff; + + + if ( rand() <= (RAND_MAX * ICMPCksm) ) +diff -urN ../tmp-orig/isic-0.05/isic.c ./isic.c +--- ../tmp-orig/isic-0.05/isic.c 2000-01-30 22:55:25.000000000 +0100 ++++ ./isic.c 2004-12-20 14:28:13.952378688 +0100 +@@ -232,8 +232,8 @@ + + payload = (short int *)(buf + IP_H); + for(cx = 0; cx <= (payload_s >> 1); cx+=1) +- (u_int16_t) payload[cx] = rand() & 0xffff; +- (u_int16_t) payload[payload_s] = rand() & 0xffff; ++ payload[cx] = rand() & 0xffff; ++ payload[payload_s] = rand() & 0xffff; + + if ( printout ) { + printf("%s ->", +diff -urN ../tmp-orig/isic-0.05/tcpsic.c ./tcpsic.c +--- ../tmp-orig/isic-0.05/tcpsic.c 2000-01-29 20:04:13.000000000 +0100 ++++ ./tcpsic.c 2004-12-20 14:28:36.223992888 +0100 +@@ -304,7 +304,7 @@ + + payload = (short int *)((u_char *) tcp + 20); + for(cx = 0; cx <= (payload_s >> 1); cx+=1) +- (u_int16_t) payload[cx] = rand() & 0xffff; ++ payload[cx] = rand() & 0xffff; + + if ( rand() <= (RAND_MAX * TCPCksm) ) + libnet_do_checksum(buf, IPPROTO_TCP, (tcp->th_off << 2) +diff -urN ../tmp-orig/isic-0.05/udpsic.c ./udpsic.c +--- ../tmp-orig/isic-0.05/udpsic.c 2000-01-29 20:04:14.000000000 +0100 ++++ ./udpsic.c 2004-12-20 14:28:51.290702400 +0100 +@@ -279,7 +279,7 @@ + + payload = (short int *)((u_char *) udp + UDP_H); + for(cx = 0; cx <= (payload_s >> 1); cx+=1) +- (u_int16_t) payload[cx] = rand() & 0xffff; ++ payload[cx] = rand() & 0xffff; + + if ( printout ) { + printf("%s,%i ->", |