From b032532ac1ee8604f90a8314c03102a48f557eb0 Mon Sep 17 00:00:00 2001 From: Roger Zhong Date: Tue, 5 Apr 2022 16:03:54 -0700 Subject: [PATCH] fix indentations --- source/util/LockFileUtils.h | 41 +++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 20 deletions(-) diff --git a/source/util/LockFileUtils.h b/source/util/LockFileUtils.h index 7be38a059..cc7b2e0c6 100644 --- a/source/util/LockFileUtils.h +++ b/source/util/LockFileUtils.h @@ -19,29 +19,30 @@ namespace Aws */ class LockFileUtils { - private: - static constexpr char TAG[] = "LockFileUtils.cpp"; - static constexpr char FILE_NAME[] = "/var/run/devicecl.lock"; - static constexpr char PROCESS_NAME[] = "aws-iot-device-client"; + private: + static constexpr char TAG[] = "LockFileUtils.cpp"; + static constexpr char FILE_NAME[] = "/var/run/devicecl.lock"; + static constexpr char PROCESS_NAME[] = "aws-iot-device-client"; - /** - * \brief Gives the current process exclusive write access and writes the pid into the lock file - * @param pid - */ - static void WriteToLockFile(const std::string &pid); + /** + * \brief Gives the current process exclusive write access and writes the pid into the lock file + * @param pid + */ + static void WriteToLockFile(const std::string &pid); - public: - /** - * \brief Creates a lock file in the default directory if it does not exist, aborts execution if another process is running. - * @return 0 upon success - */ - static int ProcessLock(); + public: + /** + * \brief Creates a lock file in the default directory if it does not exist, aborts execution if + * another process is running. + * @return 0 upon success + */ + static int ProcessLock(); - /** - * \brief Deletes the lock file when device client shuts down - * @return 0 upon success - */ - static int ProcessUnlock(); + /** + * \brief Deletes the lock file when device client shuts down + * @return 0 upon success + */ + static int ProcessUnlock(); }; } // namespace Util } // namespace DeviceClient