]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Tue, 17 Sep 1996 03:20:45 +0000 (03:20 +0000)
committerwessels <>
Tue, 17 Sep 1996 03:20:45 +0000 (03:20 +0000)
src/comm.cc
src/dns.cc
src/icmp.cc
src/ident.cc
src/ipcache.cc
src/main.cc
src/redirect.cc
src/store.cc
src/tools.cc

index 5139f45cda83c9c414415b1059bd6c958ee02850..863bdf69ad7fd2400a6503347e5d92ad46dc6969 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.71 1996/09/16 21:11:05 wessels Exp $
+ * $Id: comm.cc,v 1.72 1996/09/16 21:20:45 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -225,11 +225,11 @@ commBind(int s, struct in_addr in_addr, u_short port)
  * is OR of flags specified in comm.h. */
 int
 comm_open(int sock_type,
-       int proto,
-       struct in_addr addr,
-       u_short port,
-       int flags,
-       char *note)
+    int proto,
+    struct in_addr addr,
+    u_short port,
+    int flags,
+    char *note)
 {
     int new_socket;
     FD_ENTRY *conn = NULL;
index 0f80c9ee76f34c274003c16ab347105c68527277..e64615430fbd6676bbc4405660a4874f9e76561d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: dns.cc,v 1.9 1996/09/16 21:11:06 wessels Exp $
+ * $Id: dns.cc,v 1.10 1996/09/16 21:20:45 wessels Exp $
  *
  * DEBUG: section 34    Dnsserver interface
  * AUTHOR: Harvest Derived
@@ -158,11 +158,11 @@ dnsOpenServer(char *command)
        comm_close(cfd);        /* close shared socket with child */
        /* open new socket for parent process */
        sfd = comm_open(SOCK_STREAM,
-               0,              /* protocol */
-               local_addr,
-               0,              /* port */
-               0,              /* flags */
-               NULL);  /* blocking! */
+           0,                  /* protocol */
+           local_addr,
+           0,                  /* port */
+           0,                  /* flags */
+           NULL);              /* blocking! */
        if (sfd == COMM_ERROR)
            return -1;
        if (comm_connect(sfd, localhost, port) == COMM_ERROR) {
index d9e9d6abcecbb6a2b076533be97ce6a5f08fcdfd..6ffdbb615196addfe2491d3db88c5935ad5cfd3f 100644 (file)
@@ -122,7 +122,7 @@ icmpOpen(void)
        COMM_SELECT_READ,
        (PF) icmpRecv,
        (void *) -1);
-    debug(37, 0, "icmpOpen: icmp_sock opened on FD %d\n", icmp_sock);
+    debug(37, 0, "ICMP socket opened on FD %d\n", icmp_sock);
 }
 
 void
index b4a3ca3dc3c47f3b99c5c41b97aaab07b5e77b2a..658d859e086023b1533021d8947e10b9acc5f5a8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ident.cc,v 1.13 1996/09/16 21:11:09 wessels Exp $
+ * $Id: ident.cc,v 1.14 1996/09/16 21:20:47 wessels Exp $
  *
  * DEBUG: section 30    Ident (RFC 931)
  * AUTHOR: Duane Wessels
@@ -56,11 +56,11 @@ identStart(int sock, icpStateData * icpState)
 
     if (sock < 0) {
        sock = comm_open(SOCK_STREAM,
-               0,
-               Config.Addrs.tcp_outgoing,
-               0,
-               COMM_NONBLOCKING,
-               "ident");
+           0,
+           Config.Addrs.tcp_outgoing,
+           0,
+           COMM_NONBLOCKING,
+           "ident");
        if (sock == COMM_ERROR)
            return;
     }
index 2582748d6fdeeafe587e9323ba37807ec3a9e8c9..96ac4aeed6ce11d90e3b8ad79db54dff28575725 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: ipcache.cc,v 1.60 1996/09/16 21:11:10 wessels Exp $
+ * $Id: ipcache.cc,v 1.61 1996/09/16 21:20:47 wessels Exp $
  *
  * DEBUG: section 14    IP Cache
  * AUTHOR: Harvest Derived
@@ -882,7 +882,7 @@ ipcacheStatPrint(ipcache_entry * i, StoreEntry * sentry)
        i->addr_count);
     for (k = 0; k < (int) i->addr_count; k++)
        storeAppendPrintf(sentry, " %15s",
-               inet_ntoa(inaddrFromHostent(&i->entry)));
+           inet_ntoa(inaddrFromHostent(&i->entry)));
     for (k = 0; k < (int) i->alias_count; k++)
        storeAppendPrintf(sentry, " %s", i->entry.h_aliases[k]);
     if (i->entry.h_name && strncmp(i->name, i->entry.h_name, MAX_LINELEN))
index ce9b7a56ef24660580610b5fe09e80540e404d90..3d07349891b033ec83ba4b1bf291bef139494a1b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: main.cc,v 1.76 1996/09/16 21:11:11 wessels Exp $
+ * $Id: main.cc,v 1.77 1996/09/16 21:20:48 wessels Exp $
  *
  * DEBUG: section 1     Startup and Main Loop
  * AUTHOR: Harvest Derived
@@ -359,10 +359,10 @@ serverConnectionsOpen()
 
            if ((addr = Config.Addrs.udp_outgoing).s_addr != INADDR_NONE) {
                theOutIcpConnection = comm_open(SOCK_DGRAM,
-                       0,
+                   0,
                    addr,
                    port,
-                       COMM_NONBLOCKING,
+                   COMM_NONBLOCKING,
                    "ICP Port");
                if (theOutIcpConnection < 0)
                    fatal("Cannot open Outgoing ICP Port");
index f2ce4622ea0daea98420d40c11b43a73bf28e860..99f573e8103cea8dcee6359fb602e741676a8c6f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: redirect.cc,v 1.16 1996/09/16 21:11:13 wessels Exp $
+ * $Id: redirect.cc,v 1.17 1996/09/16 21:20:49 wessels Exp $
  *
  * DEBUG: section 29    Redirector
  * AUTHOR: Duane Wessels
@@ -124,11 +124,11 @@ redirectCreateRedirector(char *command)
        comm_close(cfd);        /* close shared socket with child */
        /* open new socket for parent process */
        sfd = comm_open(SOCK_STREAM,
-               0,
-               local_addr,
-               0,
-               0,
-               NULL);  /* blocking! */
+           0,
+           local_addr,
+           0,
+           0,
+           NULL);              /* blocking! */
        if (sfd == COMM_ERROR)
            return -1;
        if (comm_connect(sfd, localhost, port) == COMM_ERROR) {
index 8271b22029d8b52b6d265c76bacadc09bb21c6a3..eddf7dfdf78cf1325aefb1dc8041e48718ed7582 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store.cc,v 1.111 1996/09/15 08:06:31 wessels Exp $
+ * $Id: store.cc,v 1.112 1996/09/16 21:20:49 wessels Exp $
  *
  * DEBUG: section 20    Storeage Manager
  * AUTHOR: Harvest Derived
@@ -2676,7 +2676,6 @@ storeWriteCleanLog(void)
        return 0;
     }
     for (e = storeGetFirst(); e; e = storeGetNext()) {
-       debug(20, 5, "storeWriteCleanLog: <URL:%s>\n", e->url);
        if (e->swap_file_number < 0)
            continue;
        if (e->swap_status != SWAP_OK)
index f29a91f4c48cfc6fbc9adb59109e3ff5a142894c..6cbf5026b3143597c223e2a976472e2db8eabc7b 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: tools.cc,v 1.58 1996/09/16 21:11:16 wessels Exp $
+ * $Id: tools.cc,v 1.59 1996/09/16 21:20:50 wessels Exp $
  *
  * DEBUG: section 21    Misc Functions
  * AUTHOR: Harvest Derived
@@ -625,7 +625,7 @@ accessLogTime(time_t t)
 struct in_addr
 inaddrFromHostent(struct hostent *hp)
 {
-       struct in_addr s;
-       memcpy(&s.s_addr, hp->h_addr, sizeof(s.s_addr));
-       return s;
+    struct in_addr s;
+    memcpy(&s.s_addr, hp->h_addr, sizeof(s.s_addr));
+    return s;
 }