]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Fri, 24 Oct 1997 05:27:17 +0000 (05:27 +0000)
committerwessels <>
Fri, 24 Oct 1997 05:27:17 +0000 (05:27 +0000)
src/client.cc
src/disk.cc
src/enums.h
src/http.cc
src/store.cc

index 96c0cc6e07026c9adecfa09685738862855b96a7..8647dd6eab7714b443dbb039096e4d389951ab8c 100644 (file)
@@ -3,8 +3,9 @@
 
 
 
+
 /*
- * $Id: client.cc,v 1.33 1997/10/23 05:13:37 wessels Exp $
+ * $Id: client.cc,v 1.34 1997/10/23 23:27:17 wessels Exp $
  *
  * DEBUG: section 0     WWW Client
  * AUTHOR: Harvest Derived
index 5a3be8f11294bf316d8a074fc1b8faa07bcee40a..5bab56b02e10fd4d089de706172f75baaac29a5b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: disk.cc,v 1.84 1997/10/23 23:20:19 wessels Exp $
+ * $Id: disk.cc,v 1.85 1997/10/23 23:27:18 wessels Exp $
  *
  * DEBUG: section 6     Disk I/O Routines
  * AUTHOR: Harvest Derived
@@ -446,7 +446,7 @@ diskHandleReadComplete(void *data, int len, int errcode)
        rc = DISK_EOF;
     }
     if (cbdataValid(ctrl_dat->client_data))
-        ctrl_dat->handler(fd, ctrl_dat->buf, len, rc, ctrl_dat->client_data);
+       ctrl_dat->handler(fd, ctrl_dat->buf, len, rc, ctrl_dat->client_data);
     cbdataUnlock(ctrl_dat->client_data);
     safe_free(ctrl_dat);
 }
index d82b051dbeeafbda40cf152db5e0177600dce0fb..31ac8502809bbd2686e52f2355165e439b9512ab 100644 (file)
@@ -219,9 +219,9 @@ enum {
 };
 
 enum {
-       STORE_NON_CLIENT,
-       STORE_MEM_CLIENT,
-       STORE_DISK_CLIENT
+    STORE_NON_CLIENT,
+    STORE_MEM_CLIENT,
+    STORE_DISK_CLIENT
 };
 
 enum {
index 2e3952a12a5a080ad7c547cd9501969967a859fa..138b38128d845a7b7240abe47828bc5bb46242e3 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.197 1997/10/23 23:22:15 wessels Exp $
+ * $Id: http.cc,v 1.198 1997/10/23 23:27:19 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -666,7 +666,7 @@ httpReadReply(int fd, void *data)
        httpState->eof = 1;
        if (httpState->reply_hdr_state < 2)
            httpProcessReplyHeader(httpState, buf, len);
-       /* storeAppend(entry, buf, len);        /* invoke handlers! */
+       /* storeAppend(entry, buf, len);        /* invoke handlers! */
        storeComplete(entry);   /* deallocates mem_obj->request */
        comm_close(fd);
     } else {
index 35ececd93c09fb6c79d16dccd6b574c105d36aac..95a247607fd41bbe822ca033be336de738459e97 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.304 1997/10/23 23:26:45 wessels Exp $
+ * $Id: store.cc,v 1.305 1997/10/23 23:27:20 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -275,7 +275,7 @@ static int storeKeepInMemory(const StoreEntry *);
 static SIH storeClientCopyFileOpened;
 static DRCB storeClientCopyHandleRead;
 static FOCB storeSwapInFileOpened;
-static void storeClientCopyFileRead(store_client *sc);
+static void storeClientCopyFileRead(store_client * sc);
 static void storeInMemAdd(StoreEntry * e);
 static void storeInMemDelete(StoreEntry * e);
 static void storeSetMemStatus(StoreEntry * e, int);
@@ -773,7 +773,7 @@ storeLowestMemReaderOffset(const StoreEntry * entry)
     off_t lowest = mem->inmem_hi;
     store_client *sc;
     store_client *nx = NULL;
-    for (sc = mem->clients; sc; sc=nx) {
+    for (sc = mem->clients; sc; sc = nx) {
        nx = sc->next;
        if (sc->callback_data == NULL)  /* open slot */
            continue;
@@ -798,7 +798,7 @@ InvokeHandlers(const StoreEntry * e)
     assert(mem->clients != NULL || mem->nclients == 0);
     debug(20, 3) ("InvokeHandlers: %s\n", e->key);
     /* walk the entire list looking for valid callbacks */
-    for (sc = mem->clients; sc; sc=nx) {
+    for (sc = mem->clients; sc; sc = nx) {
        nx = sc->next;
        debug(20, 3) ("InvokeHandlers: checking client #%d\n", i++);
        if (sc->callback_data == NULL)
@@ -1074,8 +1074,8 @@ storeSwapInStart(StoreEntry * e, SIH * callback, void *callback_data)
     if (!BIT_TEST(e->flag, ENTRY_VALIDATED)) {
        if (storeDirMapBitTest(e->swap_file_number)) {
            /* someone took our file while we weren't looking */
-           debug(0,0)("storeSwapInStart: someone took our file while we weren't looking\n");
-           debug(0,0)("storeSwapInStart: for %s\n", e->url);
+           debug(0, 0) ("storeSwapInStart: someone took our file while we weren't looking\n");
+           debug(0, 0) ("storeSwapInStart: for %s\n", e->url);
            callback(-1, callback_data);
            return;
        }
@@ -1892,7 +1892,7 @@ storeClientListAdd(StoreEntry * e, void *data)
        return;
     mem->nclients++;
     sc = xcalloc(1, sizeof(store_client));
-    cbdataAdd(sc);     /* sc is callback_data for file_read */
+    cbdataAdd(sc);             /* sc is callback_data for file_read */
     sc->callback_data = data;
     sc->seen_offset = 0;
     sc->copy_offset = 0;
@@ -1982,9 +1982,9 @@ storeClientCopyFileOpened(int fd, void *data)
 }
 
 static void
-storeClientCopyFileRead(store_client *sc)
+storeClientCopyFileRead(store_client * sc)
 {
-    assert (sc->callback != NULL);
+    assert(sc->callback != NULL);
     file_read(sc->swapin_fd,
        sc->copy_buf,
        sc->copy_size,
@@ -2342,7 +2342,7 @@ storePendingNClients(const StoreEntry * e)
     int i;
     if (mem == NULL)
        return 0;
-    for (sc = mem->clients; sc; sc=nx) {
+    for (sc = mem->clients; sc; sc = nx) {
        nx = sc->next;
        if (sc->callback_data == NULL)
            continue;