Fix minor 47/307947/3
authorYonggoo Kang <ygace.kang@samsung.com>
Thu, 14 Mar 2024 12:00:20 +0000 (21:00 +0900)
committerYonggoo Kang <ygace.kang@samsung.com>
Fri, 15 Mar 2024 02:31:37 +0000 (02:31 +0000)
- Fix typo
- Add a missing header
- Remove unnecessary newlines

Change-Id: Id9b5f287a4dbdca9b997fcfb6241a07b783772fd

srcs/common/service-file-locker.cpp
srcs/common/singleton.h
srcs/server/dl-loader.cpp
srcs/server/socket-manager.h

index ad9629e1ab4e2d16631c29998e740f762b5aafd6..cdeb7c6baf5a8a4220923ce0e464c6cf1d47cdd9 100644 (file)
@@ -32,8 +32,6 @@ inline constexpr auto FILE_LOCKER = LOCKER_PATH_PREFIX "webauthn.lock";
 namespace WA {
 
 ServiceFileLocker::ServiceFileLocker(bool blocking) :
-        FileLocker(FILE_LOCKER, blocking)
-{
-}
+        FileLocker(FILE_LOCKER, blocking) {}
 
 } /* namespace WebAuthn */
index 048c07f79d9ec5b1d3116536aad2e466cc2d1de4..a456984cbac0898d7c13d5567073f4aca3aeaa46 100644 (file)
@@ -34,14 +34,12 @@ class Singleton :
     //
 
   private:
-    Singleton()
-    {}
+    Singleton() {}
 
     static Singleton &InternalInstance();
 
   public:
-    virtual ~Singleton()
-    {}
+    virtual ~Singleton() {}
 
     static Class &Instance();
 };
index 0ab354bc02e59be7107534f5892b91f1a8535962..5b3ed9c3ccaf4bf8566d539af8da6b6157595757 100644 (file)
@@ -29,13 +29,13 @@ namespace WA {
         m_libraryHandle = dlopen(m_libraryPath.c_str(), RTLD_LAZY | RTLD_LOCAL);
         if (!m_libraryHandle)
         {
-            LogError("Unale to load library(" << m_libraryPath << "): " << dlerror());
+            LogError("Unable to load library(" << m_libraryPath << "): " << dlerror());
             throw std::runtime_error("Unable to load library");
         }
     }
     DLLoader::~DLLoader()
     {
-        LogDebug("Unlaoding library: " << m_libraryPath);
+        LogDebug("Unloading library: " << m_libraryPath);
         dlclose(m_libraryHandle);
     }
     void* DLLoader::ResolveFunction(const std::string &name) noexcept
index ca1cdb6fbca4838ce5b2778dc9b825681469b5e5..0300819c0e8034fb2befdc9d84987d46eedc1513 100644 (file)
@@ -27,6 +27,7 @@
 #include <thread>
 
 #include <exception.h>
+#include <message-buffer.h>
 
 namespace WA {