--------------------- PatchSet 11205 Date: 2007/01/26 01:51:24 Author: hno Branch: HEAD Tag: (none) Log: Fixed up some more GCC warnings Members: src/client_side.c:1.695->1.696 src/protos.h:1.522->1.523 src/url.c:1.145->1.146 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid/squid/src/client_side.c,v retrieving revision 1.695 retrieving revision 1.696 diff -u -r1.695 -r1.696 --- squid/src/client_side.c 24 Jan 2007 01:40:28 -0000 1.695 +++ squid/src/client_side.c 26 Jan 2007 01:51:24 -0000 1.696 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.695 2007/01/24 01:40:28 hno Exp $ + * $Id: client_side.c,v 1.696 2007/01/26 01:51:24 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -3493,7 +3493,7 @@ LOCAL_ARRAY(char, urlbuf, MAX_URL); char *url = urlbuf; char *mstr = NULL; - char *req_hdr = NULL; + const char *req_hdr = NULL; http_version_t http_ver; size_t header_sz; /* size of headers, not including first line */ size_t prefix_sz; /* size of whole request (req-line + headers) */ Index: squid/src/protos.h =================================================================== RCS file: /cvsroot/squid/squid/src/protos.h,v retrieving revision 1.522 retrieving revision 1.523 diff -u -r1.522 -r1.523 --- squid/src/protos.h 26 Jan 2007 00:44:01 -0000 1.522 +++ squid/src/protos.h 26 Jan 2007 01:51:24 -0000 1.523 @@ -1,6 +1,6 @@ /* - * $Id: protos.h,v 1.522 2007/01/26 00:44:01 adrian Exp $ + * $Id: protos.h,v 1.523 2007/01/26 01:51:24 hno Exp $ * * * SQUID Web Proxy Cache http://www.squid-cache.org/ @@ -1142,9 +1142,9 @@ extern int urlDefaultPort(protocol_t p); extern char *urlCanonicalClean(const request_t *); extern char *urlHostname(const char *url); -extern void parse_extension_method(rms_t * foo[]); -extern void free_extension_method(rms_t * foo[]); -extern void dump_extension_method(StoreEntry * entry, const char *name, rms_t * methods[]); +extern void parse_extension_method(rms_t(*foo)[]); +extern void free_extension_method(rms_t(*foo)[]); +extern void dump_extension_method(StoreEntry * entry, const char *name, rms_t * methods); extern void useragentOpenLog(void); extern void useragentRotateLog(void); Index: squid/src/url.c =================================================================== RCS file: /cvsroot/squid/squid/src/url.c,v retrieving revision 1.145 retrieving revision 1.146 diff -u -r1.145 -r1.146 --- squid/src/url.c 21 Jan 2007 12:54:00 -0000 1.145 +++ squid/src/url.c 26 Jan 2007 01:51:24 -0000 1.146 @@ -1,6 +1,6 @@ /* - * $Id: url.c,v 1.145 2007/01/21 12:54:00 adrian Exp $ + * $Id: url.c,v 1.146 2007/01/26 01:51:24 hno Exp $ * * DEBUG: section 23 URL Parsing * AUTHOR: Duane Wessels @@ -703,7 +703,7 @@ } void -parse_extension_method(rms_t * foo[]) +parse_extension_method(rms_t(*foo)[]) { char *token; char *t = strtok(NULL, ""); @@ -713,7 +713,7 @@ } void -free_extension_method(rms_t * foo[]) +free_extension_method(rms_t(*foo)[]) { method_t method; for (method = METHOD_EXT00; method < METHOD_ENUM_END; method++) { @@ -728,7 +728,7 @@ } void -dump_extension_method(StoreEntry * entry, const char *name, rms_t * methods[]) +dump_extension_method(StoreEntry * entry, const char *name, rms_t * methods) { method_t method; for (method = METHOD_EXT00; method < METHOD_ENUM_END; method++) {