--------------------- PatchSet 11290 Date: 2007/03/03 17:26:17 Author: serassio Branch: HEAD Tag: (none) Log: Fix harmless gcc compile warnings Members: src/HttpMsg.c:1.14->1.15 src/HttpStatusLine.c:1.27->1.28 Index: squid/src/HttpMsg.c =================================================================== RCS file: /cvsroot/squid/squid/src/HttpMsg.c,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- squid/src/HttpMsg.c 27 Feb 2007 00:28:22 -0000 1.14 +++ squid/src/HttpMsg.c 3 Mar 2007 17:26:17 -0000 1.15 @@ -1,6 +1,6 @@ /* - * $Id: HttpMsg.c,v 1.14 2007/02/27 00:28:22 hno Exp $ + * $Id: HttpMsg.c,v 1.15 2007/03/03 17:26:17 serassio Exp $ * * DEBUG: section 74 HTTP Message * AUTHOR: Alex Rousskov @@ -180,7 +180,7 @@ i = 0; /* Find first non-whitespace - beginning of method */ - for (; i < hmsg->req_end && (isspace(hmsg->buf[i])); i++); + for (; i < hmsg->req_end && (isspace((int) hmsg->buf[i])); i++); if (i >= hmsg->req_end) { retcode = 0; goto finish; @@ -190,7 +190,7 @@ hmsg->r_len = hmsg->req_end - hmsg->req_start + 1; /* Find first whitespace - end of method */ - for (; i < hmsg->req_end && (!isspace(hmsg->buf[i])); i++); + for (; i < hmsg->req_end && (!isspace((int) hmsg->buf[i])); i++); if (i >= hmsg->req_end) { retcode = -1; goto finish; @@ -199,7 +199,7 @@ hmsg->m_len = hmsg->m_end - hmsg->m_start + 1; /* Find first non-whitespace - beginning of URL+Version */ - for (; i < hmsg->req_end && (isspace(hmsg->buf[i])); i++); + for (; i < hmsg->req_end && (isspace((int) hmsg->buf[i])); i++); if (i >= hmsg->req_end) { retcode = -1; goto finish; @@ -242,7 +242,7 @@ } else { /* Find the first non-whitespace after last_whitespace */ /* XXX why <= vs < ? I do need to really re-audit all of this .. */ - for (i = last_whitespace; i <= hmsg->req_end && isspace(hmsg->buf[i]); i++); + for (i = last_whitespace; i <= hmsg->req_end && isspace((int) hmsg->buf[i]); i++); if (i > hmsg->req_end) { retcode = -1; goto finish; @@ -260,7 +260,7 @@ /* next should be 1 or more digits */ maj = 0; - for (; i < hmsg->req_end && (isdigit(hmsg->buf[i])); i++) { + for (; i < hmsg->req_end && (isdigit((int) hmsg->buf[i])); i++) { maj = maj * 10; maj = maj + (hmsg->buf[i]) - '0'; } @@ -280,7 +280,7 @@ /* next should be one or more digits */ i++; min = 0; - for (; i < hmsg->req_end && (isdigit(hmsg->buf[i])); i++) { + for (; i < hmsg->req_end && (isdigit((int) hmsg->buf[i])); i++) { min = min * 10; min = min + (hmsg->buf[i]) - '0'; } Index: squid/src/HttpStatusLine.c =================================================================== RCS file: /cvsroot/squid/squid/src/HttpStatusLine.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -r1.27 -r1.28 --- squid/src/HttpStatusLine.c 21 Jan 2007 12:53:56 -0000 1.27 +++ squid/src/HttpStatusLine.c 3 Mar 2007 17:26:17 -0000 1.28 @@ -1,6 +1,6 @@ /* - * $Id: HttpStatusLine.c,v 1.27 2007/01/21 12:53:56 adrian Exp $ + * $Id: HttpStatusLine.c,v 1.28 2007/03/03 17:26:17 serassio Exp $ * * DEBUG: section 57 HTTP Status-line * AUTHOR: Alex Rousskov @@ -97,7 +97,7 @@ /* Format: HTTP/x.x CRLF */ s = start; maj = 0; - for (s = start; s < end && isdigit(*s); s++) { + for (s = start; s < end && isdigit((int) *s); s++) { maj = maj * 10; maj = maj + *s - '0'; } @@ -113,7 +113,7 @@ s++; /* next should be minor number */ min = 0; - for (; s < end && isdigit(*s); s++) { + for (; s < end && isdigit((int) *s); s++) { min = min * 10; min = min + *s - '0'; } @@ -127,7 +127,7 @@ s++; /* next should be status start */ status = 0; - for (; s < end && isdigit(*s); s++) { + for (; s < end && isdigit((int) *s); s++) { status = status * 10; status = status + *s - '0'; }