From 11876a275e5ccbaf8ebaf343627ba57dd052434e Mon Sep 17 00:00:00 2001 From: Dean Lee Date: Mon, 16 Aug 2021 22:07:06 +0800 Subject: [PATCH] params.cc: remove unnecessary static keyword (#21940) old-commit-hash: 39870b195dd9377a2808273c48570fefb7a56994 --- selfdrive/common/params.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/common/params.cc b/selfdrive/common/params.cc index e5cdd1ac4b..a137afb582 100644 --- a/selfdrive/common/params.cc +++ b/selfdrive/common/params.cc @@ -74,7 +74,7 @@ int mkdir_p(std::string path) { return 0; } -static bool create_params_path(const std::string ¶m_path, const std::string &key_path) { +bool create_params_path(const std::string ¶m_path, const std::string &key_path) { // Make sure params path exists if (!util::file_exists(param_path) && mkdir_p(param_path) != 0) { return false; @@ -113,7 +113,7 @@ static bool create_params_path(const std::string ¶m_path, const std::string return chmod(key_path.c_str(), 0777) == 0; } -static void ensure_params_path(const std::string ¶ms_path) { +void ensure_params_path(const std::string ¶ms_path) { if (!create_params_path(params_path, params_path + "/d")) { throw std::runtime_error(util::string_format("Failed to ensure params path, errno=%d", errno)); }