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 <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-02-06 20:37:16 +08:00 committed by Petro Karashchenko
parent 15c487085a
commit 108a5004c5
2 changed files with 6 additions and 6 deletions

View File

@ -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---

View File

@ -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 */