From 69e850963d35f0ef6ee954f6cf817b9958325781 Mon Sep 17 00:00:00 2001 From: yang1946 Date: Tue, 18 Jun 2024 11:17:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=AD=BE=E5=90=8D=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yang1946 --- services/key_enable/utils/src/devices_security.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/services/key_enable/utils/src/devices_security.cpp b/services/key_enable/utils/src/devices_security.cpp index a5827a5..3ccca6e 100644 --- a/services/key_enable/utils/src/devices_security.cpp +++ b/services/key_enable/utils/src/devices_security.cpp @@ -37,7 +37,7 @@ constexpr int32_t CMDLINE_MAX_BUF_LEN = 4096; static const std::string PROC_CMDLINE_FILE_PATH = "/proc/cmdline"; static int32_t g_isRdDevice = NOT_INITIALIZE; -bool CheckDeviceMode(char *buf, ssize_t bunLen) +static bool CheckDeviceMode(char *buf, ssize_t bunLen) { if (strstr(buf, "oemmode=rd")) { LOG_DEBUG(LABEL, "Oemode is rd"); @@ -48,7 +48,7 @@ bool CheckDeviceMode(char *buf, ssize_t bunLen) return false; } -int32_t CheckEfuseStatus(char *buf, ssize_t bunLen) +static int32_t CheckEfuseStatus(char *buf, ssize_t bunLen) { if (strstr(buf, "efuse_status=1")) { LOG_DEBUG(LABEL, "device is not efused"); @@ -59,7 +59,7 @@ int32_t CheckEfuseStatus(char *buf, ssize_t bunLen) return false; } -void ParseCMDLine() +static void ParseCMDLine() { int32_t fd = open(PROC_CMDLINE_FILE_PATH.c_str(), O_RDONLY); if (fd < 0) { -- Gitee