[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [torsocks/osx] Fix compile warning in test_torsocks.c
commit 90f3cc0b3f08b965ec999fbcecbc9f9ff4f5dbf4
Author: Robert Hogan <robert@xxxxxxxxxxxxxxx>
Date: Sun Feb 20 14:00:07 2011 +0000
Fix compile warning in test_torsocks.c
---
test/test_torsocks.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/test_torsocks.c b/test/test_torsocks.c
index e67de0a..a262303 100644
--- a/test/test_torsocks.c
+++ b/test/test_torsocks.c
@@ -69,7 +69,7 @@ static int icmp_test()
struct sockaddr_in dest;
struct ip *iphdr=(struct ip *) datagram;
struct icmphdr *icmphdr=(struct icmphdr *)(iphdr +1);
- char *buff=(icmphdr +1);
+ char *buff=(char *)(icmphdr +1);
printf("\n----------------icmp() TEST----------------------------\n\n");
if((sockfd=socket(AF_INET,SOCK_RAW,IPPROTO_ICMP))<0)
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits