]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Wed, 4 Feb 1998 14:22:13 +0000 (14:22 +0000)
committerwessels <>
Wed, 4 Feb 1998 14:22:13 +0000 (14:22 +0000)
src/acl.cc
src/client.cc
src/client_side.cc
src/ftp.cc
src/http.cc

index 34d24aa5e7cc51ac3ea51f6d74ce6b0ac7eed14a..4dbf1dbd7316551b550d817a1c0d59120770e194 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: acl.cc,v 1.132 1998/02/03 04:21:11 wessels Exp $
+ * $Id: acl.cc,v 1.133 1998/02/04 07:22:13 wessels Exp $
  *
  * DEBUG: section 28    Access Control
  * AUTHOR: Duane Wessels
@@ -1783,7 +1783,7 @@ aclReadProxyAuth(struct _acl_proxy_auth *p)
                passwd = strtok(NULL, "\n");
                debug(28, 5) ("aclReadProxyAuth: adding new passwords to hash table\n");
                while (user != NULL) {
-                   if ((int)strlen(user) > 1 && passwd && (int) strlen(passwd) > 1) {
+                   if ((int) strlen(user) > 1 && passwd && (int) strlen(passwd) > 1) {
                        debug(28, 6) ("aclReadProxyAuth: adding %s, %s to hash table\n", user, passwd);
                        hash_insert(p->hash, xstrdup(user), (void *) xstrdup(passwd));
                    }
index eed7a46a6195074080374512255e600efb5e925f..01610b10badb6bf543678c9c279862f412230fc6 100644 (file)
@@ -1,7 +1,8 @@
 
 
+
 /*
- * $Id: client.cc,v 1.50 1998/02/02 21:16:18 wessels Exp $
+ * $Id: client.cc,v 1.51 1998/02/04 07:22:15 wessels Exp $
  *
  * DEBUG: section 0     WWW Client
  * AUTHOR: Harvest Derived
index c8ad526fd068fed22aa439eb25882b1d3cac6469..7620dabb64d3b3098758a86f655fb62008c01a70 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: client_side.cc,v 1.203 1998/02/03 04:21:12 wessels Exp $
+ * $Id: client_side.cc,v 1.204 1998/02/04 07:22:16 wessels Exp $
  *
  * DEBUG: section 33    Client-side Routines
  * AUTHOR: Duane Wessels
@@ -495,7 +495,7 @@ clientPurgeRequest(clientHttpRequest * http)
        http->http_code = HTTP_OK;
     }
     msg = httpReplyHeader(1.0, http->http_code, NULL, 0, 0, -1);
-    if ((int)strlen(msg) < 8190)
+    if ((int) strlen(msg) < 8190)
        strcat(msg, "\r\n");
     comm_write(fd, xstrdup(msg), strlen(msg), clientWriteComplete, http, xfree);
 }
index 01d604100082eaf27150563168c883127159bcbb..331947ecd1ec82692e71154b3141df47c30d02a2 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: ftp.cc,v 1.190 1998/02/03 04:21:14 wessels Exp $
+ * $Id: ftp.cc,v 1.191 1998/02/04 07:22:18 wessels Exp $
  *
  * DEBUG: section 9     File Transfer Protocol (FTP)
  * AUTHOR: Harvest Derived
@@ -548,7 +548,7 @@ ftpHtmlifyListEntry(char *line, FtpStateData * ftpState)
     size_t width = Config.Ftp.list_width;
     ftpListParts *parts;
     int flags = ftpState->flags;
-    if ((int)strlen(line) > 1024) {
+    if ((int) strlen(line) > 1024) {
        snprintf(html, 8192, "%s\n", line);
        return html;
     }
@@ -1487,7 +1487,7 @@ ftpReadPasv(FtpStateData * ftpState)
        ftpSendPort(ftpState);
        return;
     }
-    if ((int)strlen(buf) > 1024) {
+    if ((int) strlen(buf) > 1024) {
        debug(9, 1) ("ftpReadPasv: Avoiding potential buffer overflow\n");
        ftpSendPort(ftpState);
        return;
@@ -1909,7 +1909,7 @@ ftpUrlWith2f(const request_t * request)
     if (request->port != urlDefaultPort(request->protocol))
        snprintf(portbuf, 32, ":%d", request->port);
     loginbuf[0] = '\0';
-    if ((int)strlen(request->login) > 0) {
+    if ((int) strlen(request->login) > 0) {
        strcpy(loginbuf, request->login);
        if ((t = strchr(loginbuf, ':')))
            *t = '\0';
index d5450fab236e2463bbec828e0889be95726664d7..3249310d4a059ef1c8160e958afe8225b4fe554a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: http.cc,v 1.235 1998/02/03 04:21:15 wessels Exp $
+ * $Id: http.cc,v 1.236 1998/02/04 07:22:20 wessels Exp $
  *
  * DEBUG: section 11    Hypertext Transfer Protocol (HTTP)
  * AUTHOR: Harvest Derived
@@ -826,13 +826,13 @@ httpBuildRequestHeader(request_t * request,
                EBIT_SET(cc_flags, CCC_MAXAGE);
        } else if (strncasecmp(xbuf, "Via:", 4) == 0) {
            for (s = xbuf + 4; *s && isspace(*s); s++);
-           if ((int)strlen(viabuf) + (int)strlen(s) < 4000)
+           if ((int) strlen(viabuf) + (int) strlen(s) < 4000)
                strcat(viabuf, s);
            strcat(viabuf, ", ");
            continue;
        } else if (strncasecmp(xbuf, "X-Forwarded-For:", 16) == 0) {
            for (s = xbuf + 16; *s && isspace(*s); s++);
-           if ((int)strlen(fwdbuf) + (int)strlen(s) < 4000)
+           if ((int) strlen(fwdbuf) + (int) strlen(s) < 4000)
                strcat(fwdbuf, s);
            strcat(fwdbuf, ", ");
            continue;