From 8951eb8810544e19d7514841ee75052a01478df5 Mon Sep 17 00:00:00 2001 From: 18721213663 Date: Fri, 21 Apr 2023 16:30:57 +0800 Subject: [PATCH] bugfix_fix_errcodetable Signed-off-by: 18721213663 --- utils/filemgmt_libn/include/n_error.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/filemgmt_libn/include/n_error.h b/utils/filemgmt_libn/include/n_error.h index 87fb2cce5..49079ddcc 100644 --- a/utils/filemgmt_libn/include/n_error.h +++ b/utils/filemgmt_libn/include/n_error.h @@ -131,7 +131,7 @@ enum CommonErrCode { E_OSNOTSUPPORT = 901 }; -const std::unordered_map> errCodeTable { +static inline std::unordered_map> errCodeTable { { ERRNO_NOERR, { ERRNO_NOERR, "No error imformation" } }, { EPERM, { FILEIO_SYS_CAP_TAG + E_PERM, "Operation not permitted" } }, { ENOENT, { FILEIO_SYS_CAP_TAG + E_NOENT, "No such file or directory" } }, -- Gitee