[tor-commits] [torsocks/osx] Fix compile warning in test_torsocks.c

hoganrobert at torproject.org hoganrobert at torproject.org
Sun Oct 23 18:27:17 UTC 2011


commit 90f3cc0b3f08b965ec999fbcecbc9f9ff4f5dbf4
Author: Robert Hogan <robert at roberthogan.net>
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)





More information about the tor-commits mailing list