--------------------- PatchSet 4031 Date: 2007/02/04 07:26:20 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: compile errors. Members: lib/rfc1035.c:1.5.2.9->1.5.2.10 Index: squid3/lib/rfc1035.c =================================================================== RCS file: /cvsroot/squid-sf//squid3/lib/rfc1035.c,v retrieving revision 1.5.2.9 retrieving revision 1.5.2.10 diff -u -r1.5.2.9 -r1.5.2.10 --- squid3/lib/rfc1035.c 2 Feb 2007 22:45:47 -0000 1.5.2.9 +++ squid3/lib/rfc1035.c 4 Feb 2007 07:26:20 -0000 1.5.2.10 @@ -1,6 +1,6 @@ /* - * $Id: rfc1035.c,v 1.5.2.9 2007/02/02 22:45:47 amosjeffries Exp $ + * $Id: rfc1035.c,v 1.5.2.10 2007/02/04 07:26:20 amosjeffries Exp $ * * Low level DNS protocol routines * AUTHOR: Duane Wessels @@ -690,9 +690,9 @@ static char rev[75]; unsigned int i = 0; - char *junk = NULL; #if INET6 + char *junk = NULL; const u_char* r = (const u_char*)&addr; char* p = rev; @@ -722,13 +722,9 @@ } else if (qid == RFC1035_TYPE_A) { -#if INET6 /* Compile Err: with in6_addr need to check full str "\x0\x0\x0\x0\xff\xff" */ // what works for ipv6?? junk = inet6_ntop(addr); junk = inet_ntop(addr); -#else - junk = inet_ntop(addr); -#endif if(strncmp("::ffff:",junk, 6) == 0) { /* Under IPv6 the 29-32 Bytes of in6_addr are network-byte-order IPv4 Addr. */