]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Tue, 16 Apr 1996 04:50:41 +0000 (04:50 +0000)
committerwessels <>
Tue, 16 Apr 1996 04:50:41 +0000 (04:50 +0000)
src/cache_cf.cc
src/debug.cc
src/neighbors.cc
src/tools.cc

index 9f52512010b1be735a78a4744062470da8de72fe..48db5db7e82c2bb3955ac1c0c926340e4d3507ba 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: cache_cf.cc,v 1.39 1996/04/15 19:20:23 wessels Exp $ */
+/* $Id: cache_cf.cc,v 1.40 1996/04/15 22:50:41 wessels Exp $ */
 
 /* DEBUG: Section 3             cache_cf: Configuration file parsing */
 
@@ -428,9 +428,9 @@ static void parseCacheHostLine()
        if (!strcasecmp(token, "proxy-only")) {
            proxy_only = 1;
        } else if (!strcasecmp(token, "weight=")) {
-               weight = atoi(token+7);
+           weight = atoi(token + 7);
        } else {
-               self_destruct();
+           self_destruct();
        }
     }
     neighbors_cf_add(hostname, type, ascii_port, udp_port, proxy_only, weight);
index 102b3abdd62e0a12bd27461cf6a27433a01abe02..44d12fc01a565bcd037203ec70c71ab7f913b2d5 100644 (file)
@@ -1,5 +1,5 @@
 
-/* $Id: debug.cc,v 1.14 1996/04/15 18:01:19 wessels Exp $ */
+/* $Id: debug.cc,v 1.15 1996/04/15 22:51:20 wessels Exp $ */
 
 #include "squid.h"
 
@@ -113,7 +113,7 @@ static void debugOpenLog(logfile)
        xfree(debug_log_file);
     debug_log_file = xstrdup(logfile); /* keep a static copy */
     if (debug_log)
-       fclose(debug_log);
+       fclose(debug_log);
     debug_log = fopen(logfile, "a+");
     if (!debug_log) {
        fprintf(stderr, "WARNING: Cannot write log file: %s\n", logfile);
index 389f7c034a88465dfa36e15f4bc451e8ffa18ffe..8ad856ecb9c555f85c9540bbd190044dcae42ffb 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: neighbors.cc,v 1.18 1996/04/15 19:20:25 wessels Exp $ */
+/* $Id: neighbors.cc,v 1.19 1996/04/15 22:53:46 wessels Exp $ */
 
 /* TODO:
  * - change 'neighbor' to 'sibling'
@@ -594,7 +594,6 @@ void neighborsUdpAck(fd, url, header, from, entry)
                m->w_rtt = w_rtt;
            }
        }
-
        if (m->e_pings_n_acks == m->e_pings_n_pings) {
            BIT_SET(entry->flag, ENTRY_DISPATCHED);
            entry->ping_status = DONE;
@@ -616,7 +615,7 @@ void neighbors_cf_add(host, type, ascii_port, udp_port, proxy_only, weight)
      int ascii_port;
      int udp_port;
      int proxy_only;
-    int weight;
+     int weight;
 {
     struct neighbor_cf *t, *u;
 
index 8d1a261afacf0059782d5ff29ee712f82c9b2424..7eb19cbf03626eff62efa5d45a0eff0b948614ca 100644 (file)
@@ -1,5 +1,5 @@
 
-/* $Id: tools.cc,v 1.32 1996/04/15 19:20:27 wessels Exp $ */
+/* $Id: tools.cc,v 1.33 1996/04/15 22:54:55 wessels Exp $ */
 
 /*
  * DEBUG: Section 21          tools
@@ -170,10 +170,10 @@ void shut_down(sig)
     debug(21, 1, "Preparing for shutdown...\n");
     serverConnectionsClose();
     ipcacheShutdownServers();
-    for(i=fdstat_biggest_fd(); i >= 0; i--) {
+    for (i = fdstat_biggest_fd(); i >= 0; i--) {
        f = &fd_table[i];
        if (f->read_handler || f->write_handler || f->except_handler)
-               comm_set_fd_lifetime(i, 30);
+           comm_set_fd_lifetime(i, 30);
     }
     shutdown_pending = 1;
     /* reinstall signal handler? */
@@ -419,10 +419,10 @@ void reconfigure(sig)
 #endif
 }
 
-int tvSubMsec (t1, t2)
-       struct timeval t1;
-       struct timeval t2;
+int tvSubMsec(t1, t2)
+     struct timeval t1;
+     struct timeval t2;
 {
     return (t2.tv_sec - t1.tv_sec) * 1000 +
-        (t2.tv_usec - t1.tv_usec) / 1000;
+       (t2.tv_usec - t1.tv_usec) / 1000;
 }