[cpp-sp] branch main updated: Indentation

Rod Widdowson rdw at steadingsoftware.com
Thu Jun 26 17:59:14 UTC 2025


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository cpp-sp.

View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=72ab50e3975fa4c922b117dbc42af8c5d5f7ea63

The following commit(s) were added to refs/heads/main by this push:
     new 72ab50e3 Indentation
72ab50e3 is described below

commit 72ab50e3975fa4c922b117dbc42af8c5d5f7ea63
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Jun 25 14:30:32 2025 +0100

    Indentation
---
 shibsp/session/impl/FilesystemSessionCache.cpp | 30 +++++++++++++-------------
 1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/shibsp/session/impl/FilesystemSessionCache.cpp b/shibsp/session/impl/FilesystemSessionCache.cpp
index 7119f15e..fc59bb5c 100644
--- a/shibsp/session/impl/FilesystemSessionCache.cpp
+++ b/shibsp/session/impl/FilesystemSessionCache.cpp
@@ -372,27 +372,27 @@ void* FilesystemSessionCache::file_cleanup_fn(void* p)
     // Create cleanup tracking file if not already present.
 
 #ifdef WIN32
-        int f = _open(cleanupTracker.c_str(), _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
+    int f = _open(cleanupTracker.c_str(), _O_CREAT | _O_EXCL, _S_IREAD | _S_IWRITE);
 #else
-        int f = open(cleanupTracker.c_str(), O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
+    int f = open(cleanupTracker.c_str(), O_CREAT | O_EXCL, S_IRUSR | S_IWUSR);
 #endif
-        if (f < 0) {
-            int e = errno;
-            if (e == EEXIST) {
-                pcache->m_spilog.debug("detected existing cleanup tracking file at %s", cleanupTracker.c_str());
-            } else {
-                pcache->m_spilog.error("error creating cleanup tracking file at %s, errno=%d",
-                    cleanupTracker.c_str(), e);
-            }
+    if (f < 0) {
+        int e = errno;
+        if (e == EEXIST) {
+            pcache->m_spilog.debug("detected existing cleanup tracking file at %s", cleanupTracker.c_str());
+        } else {
+            pcache->m_spilog.error("error creating cleanup tracking file at %s, errno=%d",
+                cleanupTracker.c_str(), e);
         }
-        else {
-            pcache->m_spilog.debug("created initial cleanup tracking file at %s", cleanupTracker.c_str());
+    }
+    else {
+        pcache->m_spilog.debug("created initial cleanup tracking file at %s", cleanupTracker.c_str());
 #ifdef WIN32
-            _close(f);
+        _close(f);
 #else
-            close(f);
+        close(f);
 #endif
-        }
+    }
 
     mutex internal_mutex;
     unique_lock lock(internal_mutex);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list