]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Sat, 20 Jul 1996 10:22:21 +0000 (10:22 +0000)
committerwessels <>
Sat, 20 Jul 1996 10:22:21 +0000 (10:22 +0000)
src/acl.cc
src/comm.cc
src/ftp.cc
src/http.cc
src/ssl.cc
src/tunnel.cc

index 2886c87f9b4f1bb148f3c139fef5f927ee384798..1d19f8e3d2cc423d68ab9a9269acab4658192a0e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: acl.cc,v 1.20 1996/07/20 04:21:54 wessels Exp $
+ * $Id: acl.cc,v 1.21 1996/07/20 04:22:21 wessels Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -627,7 +627,7 @@ static int aclMatchTime(data, when)
 
 int aclMatchAcl(acl, checklist)
      struct _acl *acl;
-      aclCheck_t *checklist;
+     aclCheck_t *checklist;
 {
     request_t *r = checklist->request;
     struct hostent *hp = NULL;
@@ -648,7 +648,7 @@ int aclMatchAcl(acl, checklist)
        for (k = 0; *(hp->h_addr_list + k); k++) {
            xmemcpy(&checklist->dst_addr.s_addr,
                *(hp->h_addr_list + k),
-               hp->h_length);
+               hp->h_length);
            if (aclMatchIp(acl->data, checklist->dst_addr))
                return 1;
        }
index 83f4c5f9547b6bcf6d408c308d50dd39be767a70..b5ce562abb9f6c285d01390aa94d11436018d30f 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.42 1996/07/20 03:37:43 wessels Exp $
+ * $Id: comm.cc,v 1.43 1996/07/20 04:22:23 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -129,7 +129,7 @@ struct _RWStateData {
     rw_complete_handler *handler;
     void *handler_data;
     int handle_immed;
-    void (*free)(void *);
+    void (*free) (void *);
 };
 
 /* GLOBAL */
@@ -495,8 +495,8 @@ void comm_close(fd)
     conn->openned = 0;
     RWStateCallbackAndFree(fd, conn->rwstate, COMM_ERROR);
     comm_set_fd_lifetime(fd, -1);      /* invalidate the lifetime */
-    fdstat_close(fd);                  /* update fdstat */
-    while ((ch = conn->close_handler)) { /* Call close handlers */
+    fdstat_close(fd);          /* update fdstat */
+    while ((ch = conn->close_handler)) {       /* Call close handlers */
        conn->close_handler = ch->next;
        ch->handler(fd, ch->data);
        safe_free(ch);
@@ -1233,7 +1233,7 @@ static int commHandleRead(fd, state)
             * called by comm_select(). */
            debug(5, len == 0 ? 2 : 1, "commHandleRead: FD %d: read failure: %s\n",
                fd, len == 0 ? "connection closed" : xstrerror());
-           fd_table[fd].rwstate = NULL; /* handler may issue new read */
+           fd_table[fd].rwstate = NULL;        /* handler may issue new read */
            RWStateCallbackAndFree(fd, state, COMM_ERROR);
            return COMM_ERROR;
        }
@@ -1354,7 +1354,7 @@ void comm_write(fd, buf, size, timeout, handler, handler_data, free)
      int timeout;
      rw_complete_handler *handler;
      void *handler_data;
-     void (*free)(void *);
+     void (*free) (void *);
 {
     RWStateData *state = NULL;
 
index d14f8d802d05f63f03d39f8b09caa820fb1e9fd6..416e1a8575e044e9a8ec8e25d716eab2bed404c2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.46 1996/07/20 03:16:50 wessels Exp $
+ * $Id: ftp.cc,v 1.47 1996/07/20 04:22:24 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -339,7 +339,7 @@ int ftpReadReply(fd, data)
     len = read(fd, buf, SQUID_TCP_SO_RCVBUF);
     debug(9, 5, "ftpReadReply: FD %d, Read %d bytes\n", fd, len);
     if (len > 0) {
-        IOStats.Ftp.reads++;
+       IOStats.Ftp.reads++;
        for (clen = len - 1, bin = 0; clen; bin++)
            clen >>= 1;
        IOStats.Ftp.read_hist[bin]++;
index 4ea4d8f5ba06b0c778c45db9a3ba30997b5d5d5b..1985f70f6194abae9e3d93d6a0a4a28311845a45 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: http.cc,v 1.64 1996/07/20 03:16:51 wessels Exp $
+ * $Id: http.cc,v 1.65 1996/07/20 04:22:25 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -443,7 +443,7 @@ static void httpReadReply(fd, httpState)
     debug(11, 5, "httpReadReply: FD %d: len %d.\n", fd, len);
     comm_set_fd_lifetime(fd, 86400);   /* extend after good read */
     if (len > 0) {
-        IOStats.Http.reads++;
+       IOStats.Http.reads++;
        for (clen = len - 1, bin = 0; clen; bin++)
            clen >>= 1;
        IOStats.Http.read_hist[bin]++;
index 02997171746f3f133c66de92ad945c8322dee58e..9ec7dc9639a86a6ff1e598e1c22ea3a9df564d77 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ssl.cc,v 1.7 1996/07/20 03:16:55 wessels Exp $
+ * $Id: ssl.cc,v 1.8 1996/07/20 04:22:27 wessels Exp $
  *
  * DEBUG: section 26    Secure Sockets Layer Proxy
  * AUTHOR: Duane Wessels
@@ -371,7 +371,7 @@ static int sslConnect(fd, hp, sslState)
            30,
            sslErrorComplete,
            (void *) sslState,
-               xfree);
+           xfree);
        return COMM_ERROR;
     }
     debug(26, 5, "sslConnect: client=%d server=%d\n",
@@ -452,7 +452,7 @@ int sslStart(fd, url, request, mime_hdr, size_ptr)
            30,
            sslErrorComplete,
            (void *) sslState,
-               xfree);
+           xfree);
        return COMM_ERROR;
     }
     sslState = xcalloc(1, sizeof(SslStateData));
index 03eab98d16a1a93abbaf78fc9ad355fc41695295..ea01bc2ba250c2124ade018783d1747ca244a9b4 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tunnel.cc,v 1.7 1996/07/20 03:16:55 wessels Exp $
+ * $Id: tunnel.cc,v 1.8 1996/07/20 04:22:27 wessels Exp $
  *
  * DEBUG: section 26    Secure Sockets Layer Proxy
  * AUTHOR: Duane Wessels
@@ -371,7 +371,7 @@ static int sslConnect(fd, hp, sslState)
            30,
            sslErrorComplete,
            (void *) sslState,
-               xfree);
+           xfree);
        return COMM_ERROR;
     }
     debug(26, 5, "sslConnect: client=%d server=%d\n",
@@ -452,7 +452,7 @@ int sslStart(fd, url, request, mime_hdr, size_ptr)
            30,
            sslErrorComplete,
            (void *) sslState,
-               xfree);
+           xfree);
        return COMM_ERROR;
     }
     sslState = xcalloc(1, sizeof(SslStateData));