--------------------- PatchSet 4100 Date: 2002/04/30 21:57:48 Author: hno Branch: etag Tag: (none) Log: indent Members: src/client_side.c:1.29.2.23->1.29.2.24 Index: squid/src/client_side.c =================================================================== RCS file: /cvsroot/squid-sf//squid/src/client_side.c,v retrieving revision 1.29.2.23 retrieving revision 1.29.2.24 diff -u -r1.29.2.23 -r1.29.2.24 --- squid/src/client_side.c 30 Apr 2002 21:56:41 -0000 1.29.2.23 +++ squid/src/client_side.c 30 Apr 2002 21:57:48 -0000 1.29.2.24 @@ -1,6 +1,6 @@ /* - * $Id: client_side.c,v 1.29.2.23 2002/04/30 21:56:41 hno Exp $ + * $Id: client_side.c,v 1.29.2.24 2002/04/30 21:57:48 hno Exp $ * * DEBUG: section 33 Client-side Routines * AUTHOR: Duane Wessels @@ -355,7 +355,7 @@ } static void -clientHandleETagMiss(clientHttpRequest *http) +clientHandleETagMiss(clientHttpRequest * http) { StoreEntry *entry = http->entry; MemObject *mem = entry->mem_obj; @@ -386,7 +386,7 @@ if (request->vary) { storeLocateVaryDone(request->vary); request->vary = NULL; - request->etags = NULL; /* pointed into request->vary */ + request->etags = NULL; /* pointed into request->vary */ } safe_free(request->etag); safe_free(request->vary_headers); @@ -452,7 +452,7 @@ } static void -clientProcessETag(clientHttpRequest *http) +clientProcessETag(clientHttpRequest * http) { char *url = http->uri; StoreEntry *entry = NULL; @@ -562,7 +562,7 @@ * the servers 304 reply */ if (httpHeaderHas(&new_entry->mem_obj->reply->header, HDR_ETAG) && - httpHeaderHas(&request->header, HDR_IF_NONE_MATCH)) { + httpHeaderHas(&request->header, HDR_IF_NONE_MATCH)) { const char *etag = httpHeaderGetStr(&new_entry->mem_obj->reply->header, HDR_ETAG); String etags = httpHeaderGetList(&request->header, HDR_IF_NONE_MATCH); int etag_match = strListIsMember(&etags, etag, ','); @@ -1547,7 +1547,7 @@ * varies and we need to get the correct variant */ static void -clientProcessVary(VaryData *vary, void *data) +clientProcessVary(VaryData * vary, void *data) { clientHttpRequest *http = data; if (!vary) { @@ -1559,8 +1559,8 @@ } else { int i; debug(33, 2) ("clientProcessVary MISS\n"); - for (i=0; ietags.count; i++) { - debug(33, 3) ("ETag: %s\n", (char *)vary->etags.items[i]); + for (i = 0; i < vary->etags.count; i++) { + debug(33, 3) ("ETag: %s\n", (char *) vary->etags.items[i]); } } http->request->vary = vary; @@ -1645,7 +1645,7 @@ * to requery the cache. */ store_client *sc = http->sc; - http->entry = NULL; /* saved in e */ + http->entry = NULL; /* saved in e */ memFree(buf, MEM_CLIENT_SOCK_BUF); /* Warning: storeUnregister may abort the object so we must * call storeLocateVary before unregistering, and