]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Mon, 25 Aug 1997 08:19:30 +0000 (08:19 +0000)
committerwessels <>
Mon, 25 Aug 1997 08:19:30 +0000 (08:19 +0000)
src/client.cc
src/client_side.cc
src/errorpage.cc
src/neighbors.cc
src/peer_select.cc

index 662e055faf21274d6eb53a2c6f8c2d4d55ad5170..736f669c5532a193a5eb15362c6330d22ac7b58c 100644 (file)
@@ -1,7 +1,6 @@
 
-
 /*
- * $Id: client.cc,v 1.25 1997/08/10 06:34:27 wessels Exp $
+ * $Id: client.cc,v 1.26 1997/08/25 02:19:30 wessels Exp $
  *
  * DEBUG: section 0     WWW Client
  * AUTHOR: Harvest Derived
index 2e5015eddbcd1f4a09be6e393afb4b769243845b..2c534cfa38e65ced5ee61e4276cd033449afc7e1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.122 1997/08/24 23:13:26 wessels Exp $
+ * $Id: client_side.cc,v 1.123 1997/08/25 02:19:31 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -151,7 +151,7 @@ clientAccessCheckDone(int answer, void *data)
            err->redirect_url = xstrdup(redirectUrl);
        } else {
            /* NOTE: don't use HTTP_UNAUTHORIZED because then the
-              stupid browser wants us to authenticate */
+            * stupid browser wants us to authenticate */
            err->http_status = HTTP_FORBIDDEN;
        }
        errorSend(fd, err);
index 9c8690466da1552bb8dae4f96442ea95f20db1b1..ac3c0353b670b20f0b3e768f0a93102bc7ec2ca1 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: errorpage.cc,v 1.66 1997/08/24 01:59:47 wessels Exp $
+ * $Id: errorpage.cc,v 1.67 1997/08/25 02:19:32 wessels Exp $
  *
  * DEBUG: section 4     Error Generation
  * AUTHOR: Duane Wessels
@@ -116,10 +116,10 @@ errorConvert(char token, ErrorState * err)
        break;
     case 'p':
        if (r) {
-               snprintf(buf, CVT_BUF_SZ, "%d", (int) r->port);
-               p = buf;
+           snprintf(buf, CVT_BUF_SZ, "%d", (int) r->port);
+           p = buf;
        } else {
-               p = "[unknown port]";
+           p = "[unknown port]";
        }
        break;
     case 'P':
@@ -132,26 +132,26 @@ errorConvert(char token, ErrorState * err)
        p = err->dnsserver_msg;
        break;
 /*
      e - errno
      E - strerror()
      t - local time
      T - UTC
      c - Squid error code
      I - server IP address
      i - client IP address
      L - HREF link for more info/contact
      w - cachemgr email address
      h - cache hostname
      d - seconds elapsed since request received
      p - URL port #
-*/
* e - errno
* E - strerror()
* t - local time
* T - UTC
* c - Squid error code
* I - server IP address
* i - client IP address
* L - HREF link for more info/contact
* w - cachemgr email address
* h - cache hostname
* d - seconds elapsed since request received
* p - URL port #
+ */
     default:
        p = "%UNKNOWN%";
        break;
     }
     if (p == NULL)
        p = "<NULL>";
-    debug(4, 1)("errorConvert: %%%c --> '%s'\n", token, p);
+    debug(4, 1) ("errorConvert: %%%c --> '%s'\n", token, p);
     return p;
 }
 
@@ -199,7 +199,7 @@ errorBuildBuf(ErrorState * err, int *len)
        err->http_status,
        "text/html",
        clen,
-       0,              /* no LMT for error pages */
+       0,                      /* no LMT for error pages */
        squid_curtime);
     tlen = snprintf(buf, ERROR_BUF_SZ, "%s\r\n%s", hdr, content);
     if (len)
index 02b0a589dfded8aa82b8c6e622f0a52267e0ce62..c785caec6856fff0a1344b1fb1d61febca1b7b82 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: neighbors.cc,v 1.157 1997/08/25 02:17:47 wessels Exp $
+ * $Id: neighbors.cc,v 1.158 1997/08/25 02:19:32 wessels Exp $
  *
  * DEBUG: section 15    Neighbor Routines
  * AUTHOR: Harvest Derived
@@ -947,7 +947,7 @@ peerCountMcastPeersDone(void *data)
 }
 
 static void
-peerCountHandleIcpReply(peer * p, peer_t type, icp_common_t *hdr, void *data)
+peerCountHandleIcpReply(peer * p, peer_t type, icp_common_t * hdr, void *data)
 {
     ps_state *psstate = data;
     psstate->icp.n_recv++;
index 08674d1982f6fe7cd37b96a3d4479503c45e3153..f0921cc139dcdacfb7bb80bb9f0e61ab304d4bfd 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: peer_select.cc,v 1.26 1997/08/25 02:17:48 wessels Exp $
+ * $Id: peer_select.cc,v 1.27 1997/08/25 02:19:33 wessels Exp $
  *
  * DEBUG: section 44    Peer Selection Algorithm
  * AUTHOR: Duane Wessels
@@ -219,14 +219,14 @@ peerCheckNetdbDirect(ps_state * psstate)
     if (p == NULL)
        return 0;
     myrtt = netdbHostRtt(psstate->request->host);
-debug(44, 3) ("peerCheckNetdbDirect: MY RTT = %d\n", myrtt);
-debug(44, 3) ("peerCheckNetdbDirect: closest_parent_miss RTT = %d\n",
+    debug(44, 3) ("peerCheckNetdbDirect: MY RTT = %d\n", myrtt);
+    debug(44, 3) ("peerCheckNetdbDirect: closest_parent_miss RTT = %d\n",
        psstate->icp.p_rtt);
     if (myrtt && myrtt < psstate->icp.p_rtt)
        return 1;
     myhops = netdbHostHops(psstate->request->host);
-debug(44, 3) ("peerCheckNetdbDirect: MY hops = %d\n", myhops);
-debug(44, 3) ("peerCheckNetdbDirect: minimum_direct_hops = %d\n",
+    debug(44, 3) ("peerCheckNetdbDirect: MY hops = %d\n", myhops);
+    debug(44, 3) ("peerCheckNetdbDirect: minimum_direct_hops = %d\n",
        Config.minDirectHops);
     if (myhops && myhops <= Config.minDirectHops)
        return 1;