From 108a5004c552020a5c1cb591838c9afb932c3f4a Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 6 Feb 2022 20:37:16 +0800 Subject: [PATCH] net/local: Rename NET_LOCAL_PATH_PREFIX to NET_LOCAL_VFS_PATH align with other similiar config which suffix with _VFS_PATH Signed-off-by: Xiang Xiao --- net/local/Kconfig | 2 +- net/local/local_fifo.c | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/net/local/Kconfig b/net/local/Kconfig index 158282bbef..7de32d905f 100644 --- a/net/local/Kconfig +++ b/net/local/Kconfig @@ -15,7 +15,7 @@ config NET_LOCAL if NET_LOCAL -config NET_LOCAL_PATH_PREFIX +config NET_LOCAL_VFS_PATH string "Path prefix to Unix domain sockets" default "/var/socket" ---help--- diff --git a/net/local/local_fifo.c b/net/local/local_fifo.c index 8ce002e19c..63f3dbcd34 100644 --- a/net/local/local_fifo.c +++ b/net/local/local_fifo.c @@ -70,13 +70,13 @@ static inline void local_cs_name(FAR struct local_conn_s *conn, if (conn->lc_instance_id < 0) { snprintf(path, LOCAL_FULLPATH_LEN - 1, - CONFIG_NET_LOCAL_PATH_PREFIX "/%s" LOCAL_CS_SUFFIX, + CONFIG_NET_LOCAL_VFS_PATH "/%s" LOCAL_CS_SUFFIX, conn->lc_path); } else { snprintf(path, LOCAL_FULLPATH_LEN - 1, - CONFIG_NET_LOCAL_PATH_PREFIX "/%s" LOCAL_CS_SUFFIX "%" PRIx32, + CONFIG_NET_LOCAL_VFS_PATH "/%s" LOCAL_CS_SUFFIX "%" PRIx32, conn->lc_path, conn->lc_instance_id); } @@ -99,13 +99,13 @@ static inline void local_sc_name(FAR struct local_conn_s *conn, if (conn->lc_instance_id < 0) { snprintf(path, LOCAL_FULLPATH_LEN - 1, - CONFIG_NET_LOCAL_PATH_PREFIX "/%s" LOCAL_SC_SUFFIX, + CONFIG_NET_LOCAL_VFS_PATH "/%s" LOCAL_SC_SUFFIX, conn->lc_path); } else { snprintf(path, LOCAL_FULLPATH_LEN - 1, - CONFIG_NET_LOCAL_PATH_PREFIX "/%s" LOCAL_SC_SUFFIX "%" PRIx32, + CONFIG_NET_LOCAL_VFS_PATH "/%s" LOCAL_SC_SUFFIX "%" PRIx32, conn->lc_path, conn->lc_instance_id); } @@ -125,7 +125,7 @@ static inline void local_sc_name(FAR struct local_conn_s *conn, static inline void local_hd_name(FAR const char *inpath, FAR char *outpath) { snprintf(outpath, LOCAL_FULLPATH_LEN - 1, - CONFIG_NET_LOCAL_PATH_PREFIX "/%s" LOCAL_HD_SUFFIX, inpath); + CONFIG_NET_LOCAL_VFS_PATH "/%s" LOCAL_HD_SUFFIX, inpath); outpath[LOCAL_FULLPATH_LEN - 1] = '\0'; } #endif /* CONFIG_NET_LOCAL_DGRAM */