]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
SourceFormat Enforcement
authorAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 27 Oct 2011 00:18:23 +0000 (18:18 -0600)
committerAutomatic source maintenance <squidadm@squid-cache.org>
Thu, 27 Oct 2011 00:18:23 +0000 (18:18 -0600)
compat/shm.cc

index 431df0a1a93e9a9bb668f5a6d6a860e4ef6ce38d..dbaf430e11dca3cbbfed4f0c86f6e58c27218648 100644 (file)
@@ -8,7 +8,7 @@
 
 /*
  * Some systems have filesystem-based resources and interpret segment names
- * as file paths. The so-called 'portable' "/name" format does not work well 
+ * as file paths. The so-called 'portable' "/name" format does not work well
  * for them. And, according to Boost::interprocess, recent FreeBSD versions
  * make this decision depending on whether the shm_open() caller is jailed!
  */
@@ -16,12 +16,12 @@ bool
 shm_portable_segment_name_is_path()
 {
 #if defined(_SQUID_HPUX_) || defined(_SQUID_OSF_) || defined(__vms) || (defined(_SQUID_FREEBSD_) && (__FreeBSD__ < 7))
-       return true;
+    return true;
 #elif defined(_SQUID_FREEBSD_)
-   int jailed = 0;
-   size_t len = sizeof(jailed);
-   ::sysctlbyname("security.jail.jailed", &jailed, &len, NULL, 0);
-   return !jailed;
+    int jailed = 0;
+    size_t len = sizeof(jailed);
+    ::sysctlbyname("security.jail.jailed", &jailed, &len, NULL, 0);
+    return !jailed;
 #else
     return false;
 #endif