--------------------- PatchSet 5643 Date: 2007/09/22 19:25:16 Author: serassio Branch: squid3-ipv6 Tag: (none) Log: Fixed build error on Solaris x86 using gcc 3.4.3 Members: lib/rfc1035.c:1.5.2.20->1.5.2.21 Index: squid3/lib/rfc1035.c =================================================================== RCS file: /cvsroot/squid-sf//squid3/lib/rfc1035.c,v retrieving revision 1.5.2.20 retrieving revision 1.5.2.21 diff -u -r1.5.2.20 -r1.5.2.21 --- squid3/lib/rfc1035.c 21 Sep 2007 12:34:14 -0000 1.5.2.20 +++ squid3/lib/rfc1035.c 22 Sep 2007 19:25:16 -0000 1.5.2.21 @@ -1,6 +1,6 @@ /* - * $Id: rfc1035.c,v 1.5.2.20 2007/09/21 12:34:14 amosjeffries Exp $ + * $Id: rfc1035.c,v 1.5.2.21 2007/09/22 19:25:16 serassio Exp $ * * Low level DNS protocol routines * AUTHOR: Duane Wessels @@ -580,6 +580,7 @@ unsigned int off = 0; unsigned int i = 0; unsigned int nr = 0; + unsigned int j; rfc1035_message *msg; rfc1035_rr *recs; rfc1035_query *querys; @@ -601,7 +602,7 @@ return -rfc1035_unpack_error; } querys = msg->query = (rfc1035_query*)xcalloc(i, sizeof(*querys)); - for (unsigned int j = 0; j < i; j++) { + for (j = 0; j < i; j++) { if (rfc1035QueryUnpack(buf, sz, &off, &querys[j])) { RFC1035_UNPACK_DEBUG; rfc1035SetErrno(rfc1035_unpack_error); @@ -619,7 +620,7 @@ return 0; i = (unsigned int) msg->ancount; recs = msg->answer = xcalloc(i, sizeof(*recs)); - for (unsigned int j = 0; j < i; j++) { + for (j = 0; j < i; j++) { if (off >= sz) { /* corrupt packet */ RFC1035_UNPACK_DEBUG; break;