]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Sun, 24 Jan 1999 09:26:19 +0000 (09:26 +0000)
committerwessels <>
Sun, 24 Jan 1999 09:26:19 +0000 (09:26 +0000)
src/HttpHeader.cc
src/HttpHeaderTools.cc
src/cache_cf.cc
src/client.cc
src/ftp.cc
src/gopher.cc
src/store_rebuild.cc
src/structs.h
src/wais.cc

index 1b3b9f7a0220793d1f356334d5e37d11e7ebb26e..0fb55a4424fdb83118a3090c6ace6c45df592722 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: HttpHeader.cc,v 1.60 1999/01/22 19:06:58 glenn Exp $
+ * $Id: HttpHeader.cc,v 1.61 1999/01/24 02:26:19 wessels Exp $
  *
  * DEBUG: section 55    HTTP Header
  * AUTHOR: Alex Rousskov
@@ -234,8 +234,8 @@ httpHeaderInitModule()
     assert(8 * sizeof(HttpHeaderMask) >= HDR_ENUM_END);
     /* all headers must be described */
     assert(countof(HeadersAttrs) == HDR_ENUM_END);
-    if(!Headers)
-        Headers = httpHeaderBuildFieldsInfo(HeadersAttrs, HDR_ENUM_END);
+    if (!Headers)
+       Headers = httpHeaderBuildFieldsInfo(HeadersAttrs, HDR_ENUM_END);
     /* create masks */
     httpHeaderMaskInit(&ListHeadersMask, 0);
     httpHeaderCalcMask(&ListHeadersMask, (const int *) ListHeadersArr, countof(ListHeadersArr));
@@ -1068,11 +1068,11 @@ httpHeaderIdByName(const char *name, int name_len, const HttpHeaderFieldInfo * i
 {
     int i;
     for (i = 0; i < end; ++i) {
-        if (name_len >= 0 && name_len != strLen(info[i].name))
-            continue;
-        if (!strncasecmp(name, strBuf(info[i].name),
-                name_len < 0 ? strLen(info[i].name) + 1 : name_len))
-            return i;
+       if (name_len >= 0 && name_len != strLen(info[i].name))
+           continue;
+       if (!strncasecmp(name, strBuf(info[i].name),
+               name_len < 0 ? strLen(info[i].name) + 1 : name_len))
+           return i;
     }
     return -1;
 }
@@ -1080,8 +1080,7 @@ httpHeaderIdByName(const char *name, int name_len, const HttpHeaderFieldInfo * i
 int
 httpHeaderIdByNameDef(const char *name, int name_len)
 {
-   if (!Headers)
-       Headers = httpHeaderBuildFieldsInfo(HeadersAttrs, HDR_ENUM_END);
-   return httpHeaderIdByName(name, name_len, Headers, HDR_ENUM_END);
+    if (!Headers)
+       Headers = httpHeaderBuildFieldsInfo(HeadersAttrs, HDR_ENUM_END);
+    return httpHeaderIdByName(name, name_len, Headers, HDR_ENUM_END);
 }
-
index 3a6427aea5970f449f3e46ad6580a5bc015af71b..ac572c0b01101b836534b8255a9a3c487e00d637 100644 (file)
@@ -1,5 +1,6 @@
+
 /*
- * $Id: HttpHeaderTools.cc,v 1.23 1999/01/22 19:06:59 glenn Exp $
+ * $Id: HttpHeaderTools.cc,v 1.24 1999/01/24 02:26:20 wessels Exp $
  *
  * DEBUG: section 66    HTTP Header Tools
  * AUTHOR: Alex Rousskov
index b774f41be4977cf9373e4abde3e569c1925cf7f7..3455a4f35f70c9e315aa6ea0cbaf4f727c4611be 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: cache_cf.cc,v 1.320 1999/01/22 19:07:02 glenn Exp $
+ * $Id: cache_cf.cc,v 1.321 1999/01/24 02:26:21 wessels Exp $
  *
  * DEBUG: section 3     Configuration File Parsing
  * AUTHOR: Harvest Derived
@@ -76,7 +76,7 @@ static void requirePathnameExists(const char *name, const char *path);
 static OBJH dump_config;
 static void dump_http_header(StoreEntry * entry, const char *name, HttpHeaderMask header);
 static void parse_http_header(HttpHeaderMask * header);
-static void free_http_header(HttpHeaderMask *header);
+static void free_http_header(HttpHeaderMask * header);
 
 static void
 self_destruct(void)
@@ -517,10 +517,10 @@ free_address(struct in_addr *addr)
 
 static void
 dump_http_header(StoreEntry * entry, const char *name, HttpHeaderMask header)
-{    
+{
     storeAppendPrintf(entry, "%s\n", name);
 }
-    
+
 static void
 parse_http_header(HttpHeaderMask * header)
 {
@@ -544,12 +544,11 @@ parse_http_header(HttpHeaderMask * header)
        return;
     }
 
-    if(!http_header_first){
+    if (!http_header_first) {
        http_header_first = 1;
        if (allowed)
            httpHeaderMaskInit(header, 0xFF);
     }
-
     while ((t = strtok(NULL, w_space))) {
        if ((id = httpHeaderIdByNameDef(t, strlen(t))) == -1)
            id = HDR_OTHER;
@@ -559,10 +558,10 @@ parse_http_header(HttpHeaderMask * header)
            CBIT_SET(*header, id);
     }
 }
-     
+
 static void
-free_http_header(HttpHeaderMask *header)
-{    
+free_http_header(HttpHeaderMask * header)
+{
     httpHeaderMaskInit(header, 0);
 }
 
index 8534f100c015d58018db1d70b342954c26ce51ea..aae534a7a11e14cbff08a63d3d13e7c356c42bd4 100644 (file)
@@ -1,7 +1,8 @@
 
 
+
 /*
- * $Id: client.cc,v 1.80 1999/01/12 23:38:36 wessels Exp $
+ * $Id: client.cc,v 1.81 1999/01/24 02:26:22 wessels Exp $
  *
  * DEBUG: section 0     WWW Client
  * AUTHOR: Harvest Derived
index d2e1a8b7ca5870657920b20206df19bb99cb0c0f..83bb79bfb2699b678e7642814f0e7027d6b03880 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.277 1999/01/22 04:29:01 wessels Exp $
+ * $Id: ftp.cc,v 1.278 1999/01/24 02:26:23 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -319,12 +319,12 @@ ftpTimeout(int fd, void *data)
     FtpStateData *ftpState = data;
     StoreEntry *entry = ftpState->entry;
     debug(9, 4) ("ftpTimeout: FD %d: '%s'\n", fd, storeUrl(entry));
-    if (entry->store_status == STORE_PENDING) { 
-        if (entry->mem_obj->inmem_hi == 0) {
-            fwdFail(ftpState->fwd,
-                errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
-        }   
-    }   
+    if (entry->store_status == STORE_PENDING) {
+       if (entry->mem_obj->inmem_hi == 0) {
+           fwdFail(ftpState->fwd,
+               errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
+       }
+    }
     if (ftpState->data.fd > -1) {
        comm_close(ftpState->data.fd);
        ftpState->data.fd = -1;
@@ -2321,7 +2321,7 @@ ftpAppendSuccessHeader(FtpStateData * ftpState)
     if (ftpState->restarted_offset) {
        /* Partial reply */
        HttpHdrRangeSpec range_spec;
-       range_spec.offset = ftpState->restarted_offset;
+       range_spec.offset = ftpState->restarted_offset;
        range_spec.length = ftpState->size - ftpState->restarted_offset;
        httpReplySetHeaders(reply, 1.0, HTTP_PARTIAL_CONTENT, "Gatewaying",
            mime_type, ftpState->size - ftpState->restarted_offset, ftpState->mdtm, -2);
index 888b6179aa7d140c1930cacdac4e087a3d7a4004..2d6a8db2bb76b49269f4558b8fa83b925badc854 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: gopher.cc,v 1.148 1999/01/20 19:27:11 wessels Exp $
+ * $Id: gopher.cc,v 1.149 1999/01/24 02:26:24 wessels Exp $
  *
  * DEBUG: section 10    Gopher
  * AUTHOR: Harvest Derived
@@ -576,12 +576,12 @@ gopherTimeout(int fd, void *data)
     GopherStateData *gopherState = data;
     StoreEntry *entry = gopherState->entry;
     debug(10, 4) ("gopherTimeout: FD %d: '%s'\n", fd, storeUrl(entry));
-    if (entry->store_status == STORE_PENDING) { 
-        if (entry->mem_obj->inmem_hi == 0) {
-            fwdFail(gopherState->fwdState,
-                errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
-        }   
-    }   
+    if (entry->store_status == STORE_PENDING) {
+       if (entry->mem_obj->inmem_hi == 0) {
+           fwdFail(gopherState->fwdState,
+               errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
+       }
+    }
     comm_close(fd);
 }
 
index 835e950a41ef669ddc62fcee1a99511b7ba7a0b9..3acb1d06d3a55d97e01fb32c4be4de83a3b32db2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_rebuild.cc,v 1.55 1999/01/21 21:10:37 wessels Exp $
+ * $Id: store_rebuild.cc,v 1.56 1999/01/24 02:26:25 wessels Exp $
  *
  * DEBUG: section 20    Store Rebuild Routines
  * AUTHOR: Duane Wessels
@@ -155,7 +155,7 @@ storeRebuildFromDirectory(rebuild_dir * d)
            continue;
        }
        file_close(fd);
-           store_open_disk_fd--;
+       store_open_disk_fd--;
        fd = -1;
        swap_hdr_len = 0;
 #if USE_TRUNCATE_NOT_UNLINK
index ed9f929eee6f33e33f12b6f405de5e0e2033e55c..7eb7bf36001f24ebdb65c23c7210104ca2304c95 100644 (file)
@@ -1,7 +1,6 @@
 
-
 /*
- * $Id: structs.h,v 1.269 1999/01/24 02:22:59 wessels Exp $
+ * $Id: structs.h,v 1.270 1999/01/24 02:26:26 wessels Exp $
  *
  *
  * SQUID Internet Object Cache  http://squid.nlanr.net/Squid/
index 68a683dbf9320d3df0eae49bfa41cfdc3b248b87..ec383539b2c65380a6087ec3a0a3e2823329e8de 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: wais.cc,v 1.130 1999/01/20 19:27:12 wessels Exp $
+ * $Id: wais.cc,v 1.131 1999/01/24 02:26:26 wessels Exp $
  *
  * DEBUG: section 24    WAIS Relay
  * AUTHOR: Harvest Derived
@@ -69,12 +69,12 @@ waisTimeout(int fd, void *data)
     WaisStateData *waisState = data;
     StoreEntry *entry = waisState->entry;
     debug(24, 4) ("waisTimeout: FD %d: '%s'\n", fd, storeUrl(entry));
-    if (entry->store_status == STORE_PENDING) { 
-        if (entry->mem_obj->inmem_hi == 0) {
-            fwdFail(waisState->fwd,
-                errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
-        }   
-    }   
+    if (entry->store_status == STORE_PENDING) {
+       if (entry->mem_obj->inmem_hi == 0) {
+           fwdFail(waisState->fwd,
+               errorCon(ERR_READ_TIMEOUT, HTTP_GATEWAY_TIMEOUT));
+       }
+    }
     comm_close(fd);
 }