This is an automated email from the ASF dual-hosted git repository.
pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 108a500 net/local: Rename NET_LOCAL_PATH_PREFIX to NET_LOCAL_VFS_PATH
108a500 is described below
commit 108a5004c552020a5c1cb591838c9afb932c3f4a
Author: Xiang Xiao <[email protected]>
AuthorDate: Sun Feb 6 20:37:16 2022 +0800
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 <[email protected]>
---
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 158282b..7de32d9 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 8ce002e..63f3dbc 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 */