]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/cache_cf.cc
SourceFormat: enforcement
[thirdparty/squid.git] / src / cache_cf.cc
index 19dd089d92a8d3bb9fe250d2b0850050cdae4622..22a8d9fe90d0cf0116f18aacac332aa84309d2a1 100644 (file)
@@ -1648,7 +1648,7 @@ GetService(const char *proto)
         return 0; /* NEVER REACHED */
     }
     /** Returns either the service port number from /etc/services */
-    if( !isUnsignedNumeric(token, strlen(token)) )
+    if ( !isUnsignedNumeric(token, strlen(token)) )
         port = getservbyname(token, proto);
     if (port != NULL) {
         return ntohs((u_short)port->s_port);
@@ -2782,22 +2782,22 @@ parse_memcachemode(SquidConfig * config)
 {
     char *token = strtok(NULL, w_space);
     if (!token)
-       self_destruct();
+        self_destruct();
 
     if (strcmp(token, "always") == 0) {
-       Config.onoff.memory_cache_first = 1;
-       Config.onoff.memory_cache_disk = 1;
+        Config.onoff.memory_cache_first = 1;
+        Config.onoff.memory_cache_disk = 1;
     } else if (strcmp(token, "disk") == 0) {
-       Config.onoff.memory_cache_first = 0;
-       Config.onoff.memory_cache_disk = 1;
+        Config.onoff.memory_cache_first = 0;
+        Config.onoff.memory_cache_disk = 1;
     } else if (strncmp(token, "net", 3) == 0) {
-       Config.onoff.memory_cache_first = 1;
-       Config.onoff.memory_cache_disk = 0;
+        Config.onoff.memory_cache_first = 1;
+        Config.onoff.memory_cache_disk = 0;
     } else if (strcmp(token, "never") == 0) {
-       Config.onoff.memory_cache_first = 0;
-       Config.onoff.memory_cache_disk = 0;
+        Config.onoff.memory_cache_first = 0;
+        Config.onoff.memory_cache_disk = 0;
     } else
-       self_destruct();
+        self_destruct();
 }
 
 static void
@@ -2805,13 +2805,13 @@ dump_memcachemode(StoreEntry * entry, const char *name, SquidConfig &config)
 {
     storeAppendPrintf(entry, "%s ", name);
     if (Config.onoff.memory_cache_first && Config.onoff.memory_cache_disk)
-       storeAppendPrintf(entry, "always");
+        storeAppendPrintf(entry, "always");
     else if (!Config.onoff.memory_cache_first && Config.onoff.memory_cache_disk)
-       storeAppendPrintf(entry, "disk");
+        storeAppendPrintf(entry, "disk");
     else if (Config.onoff.memory_cache_first && !Config.onoff.memory_cache_disk)
-       storeAppendPrintf(entry, "network");
+        storeAppendPrintf(entry, "network");
     else if (!Config.onoff.memory_cache_first && !Config.onoff.memory_cache_disk)
-       storeAppendPrintf(entry, "none");
+        storeAppendPrintf(entry, "none");
     storeAppendPrintf(entry, "\n");
 }