]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
gindent
authorwessels <>
Tue, 16 Apr 1996 11:13:33 +0000 (11:13 +0000)
committerwessels <>
Tue, 16 Apr 1996 11:13:33 +0000 (11:13 +0000)
src/cache_cf.cc
src/http.cc
src/squid.h
src/url.cc
src/wais.cc

index 4425416dd5ec8d5c129b22ab085d24be514da7bb..ba29d4b2fc072c0577ab1f504b86d417a32320b1 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: cache_cf.cc,v 1.44 1996/04/16 05:05:17 wessels Exp $ */
+/* $Id: cache_cf.cc,v 1.45 1996/04/16 05:13:33 wessels Exp $ */
 
 /* DEBUG: Section 3             cache_cf: Configuration file parsing */
 
@@ -1070,7 +1070,7 @@ int parseConfigFile(file_name)
     }
     cfg_filename = file_name;
     if ((token = strrchr(cfg_filename, '/')))
-       cfg_filename = token+1;
+       cfg_filename = token + 1;
     memset(config_input_line, '\0', BUFSIZ);
     config_lineno = 0;
     while (fgets(config_input_line, BUFSIZ, fp)) {
index dcc00aa3844b57a6a2b39a330cb1eba5042a8236..c028ea30c04b8c12d15433326750c706210667ec 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: http.cc,v 1.49 1996/04/16 05:05:23 wessels Exp $ */
+/* $Id: http.cc,v 1.50 1996/04/16 05:13:34 wessels Exp $ */
 
 /*
  * DEBUG: Section 11          http: HTTP
@@ -520,7 +520,7 @@ int proxyhttpStart(e, url, entry)
     data = (HttpData *) xcalloc(1, sizeof(HttpData));
     data->entry = entry;
     data->req_hdr = entry->mem_obj->mime_hdr;
-    request = (request_t *) xcalloc (1, sizeof(request_t));
+    request = (request_t *) xcalloc(1, sizeof(request_t));
     data->free_request = 1;
     data->REQ = request;
 
index 10c15157e7db2654a11b35520adc54f56f891fbf..66e06dfa4488d9deae8facaf806589c951cf1a68 100644 (file)
@@ -1,5 +1,5 @@
 
-/* $Id: squid.h,v 1.18 1996/04/16 05:05:29 wessels Exp $ */
+/* $Id: squid.h,v 1.19 1996/04/16 05:13:37 wessels Exp $ */
 
 #include "config.h"
 #include "autoconf.h"
@@ -98,7 +98,7 @@ typedef unsigned long u_num32;
 #include "url.h"
 #include "proto.h"
 #include "icp.h"
-#include "errorpage.h" /* must go after icp.h */
+#include "errorpage.h"         /* must go after icp.h */
 #include "ipcache.h"
 #include "mime.h"
 #include "neighbors.h"
index bf9c2e492f6b066b6619ded22b34794994dd663e..5daf6ecc0945dece869369c8922e9aa89b070a8a 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: url.cc,v 1.17 1996/04/16 04:23:17 wessels Exp $ */
+/* $Id: url.cc,v 1.18 1996/04/16 05:13:37 wessels Exp $ */
 
 /* 
  * DEBUG: Section 23          url
@@ -163,12 +163,12 @@ int urlDefaultPort(p)
 }
 
 request_t *urlParse(method, url)
-       method_t method;
-       char *url;
+     method_t method;
+     char *url;
 {
-    static char proto[MAX_URL+1];
-    static char host[MAX_URL+1];
-    static char urlpath[MAX_URL+1];
+    static char proto[MAX_URL + 1];
+    static char host[MAX_URL + 1];
+    static char urlpath[MAX_URL + 1];
     request_t *request = NULL;
     char *t = NULL;
     int port;
@@ -179,26 +179,25 @@ request_t *urlParse(method, url)
        port = CONNECT_PORT;
        if (sscanf(url, "%[^:]:%d", host, &port) < 1)
            return NULL;
-        if (!aclMatchInteger(connect_port_list, port))
+       if (!aclMatchInteger(connect_port_list, port))
            return NULL;
     } else {
        if (sscanf(url, "%[^:]://%[^/]%s", proto, host, urlpath) < 2)
            return NULL;
        protocol = urlParseProtocol(proto);
        port = urlDefaultPort(protocol);
-       if ((t = strchr(host, ':')) && *(t+1) != '\0') {
+       if ((t = strchr(host, ':')) && *(t + 1) != '\0') {
            *t = '\0';
            port = atoi(t + 1);
        }
     }
     for (t = host; *t; t++)
-        *t = tolower(*t);
+       *t = tolower(*t);
     if (port == 0) {
-       debug(23,0,"urlParse: Invalid port == 0\n");
+       debug(23, 0, "urlParse: Invalid port == 0\n");
        return NULL;
     }
-
-    request = (request_t *) xcalloc (1, sizeof(request_t));
+    request = (request_t *) xcalloc(1, sizeof(request_t));
     request->method = method;
     request->protocol = protocol;
     strncpy(request->host, host, SQUIDHOSTNAMELEN);
@@ -207,27 +206,27 @@ request_t *urlParse(method, url)
     return request;
 }
 
-char *urlCanonical (request, buf)
-    request_t *request;
-    char *buf;
+char *urlCanonical(request, buf)
+     request_t *request;
+     char *buf;
 {
-    static char urlbuf[MAX_URL+1];
+    static char urlbuf[MAX_URL + 1];
     static char portbuf[32];
     if (buf == NULL)
        buf = urlbuf;
     switch (request->method) {
     case METHOD_CONNECT:
-        sprintf(buf, "%s:%d", request->host, request->port);
+       sprintf(buf, "%s:%d", request->host, request->port);
        break;
     default:
        portbuf[0] = '\0';
        if (request->port != urlDefaultPort(request->protocol))
-               sprintf(portbuf, ":%d", request->port);
-        sprintf(buf, "%s://%s%s%s",
-               ProtocolStr[request->protocol],
-               request->host,
-               portbuf,
-               request->urlpath);
+           sprintf(portbuf, ":%d", request->port);
+       sprintf(buf, "%s://%s%s%s",
+           ProtocolStr[request->protocol],
+           request->host,
+           portbuf,
+           request->urlpath);
        break;
     }
     return buf;
index f7296e7b0a1d0d2ca6d7f067f73626fa2366e1b2..f8dcf91fefecc09494bde38d22a1110fc40f2bab 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: wais.cc,v 1.26 1996/04/16 05:05:35 wessels Exp $ */
+/* $Id: wais.cc,v 1.27 1996/04/16 05:13:39 wessels Exp $ */
 
 /*
  * DEBUG: Section 24          wais
@@ -250,7 +250,6 @@ int waisStart(unusedfd, url, method, mime_hdr, entry)
        safe_free(data);
        return COMM_ERROR;
     }
-
     /* Create socket. */
     sock = comm_open(COMM_NONBLOCKING, 0, 0, url);
     if (sock == COMM_ERROR) {