From c6beb35e9ec33b004f0cb4f8cf7b404ab9e2c772 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Sun, 6 Feb 2022 00:33:29 +0800 Subject: [PATCH] semaphore: Rename FS_NAMED_SEMPATH to FS_NAMED_SEMAPHORES_VFS_PATH align with other similiar config which suffix with _VFS_PATH Signed-off-by: Xiang Xiao --- fs/semaphore/Kconfig | 2 +- fs/semaphore/sem_open.c | 3 ++- fs/semaphore/sem_unlink.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/fs/semaphore/Kconfig b/fs/semaphore/Kconfig index 65051145a5c..cd84e6394e6 100644 --- a/fs/semaphore/Kconfig +++ b/fs/semaphore/Kconfig @@ -11,7 +11,7 @@ config FS_NAMED_SEMAPHORES if FS_NAMED_SEMAPHORES -config FS_NAMED_SEMPATH +config FS_NAMED_SEMAPHORES_VFS_PATH string "Path to semaphore storage" default "/var/lock" ---help--- diff --git a/fs/semaphore/sem_open.c b/fs/semaphore/sem_open.c index ad5246a1cb1..e41b24d219d 100644 --- a/fs/semaphore/sem_open.c +++ b/fs/semaphore/sem_open.c @@ -114,7 +114,8 @@ FAR sem_t *sem_open(FAR const char *name, int oflags, ...) /* Get the full path to the semaphore */ - snprintf(fullpath, MAX_SEMPATH, CONFIG_FS_NAMED_SEMPATH "/%s", name); + snprintf(fullpath, MAX_SEMPATH, + CONFIG_FS_NAMED_SEMAPHORES_VFS_PATH "/%s", name); /* Get the inode for this semaphore. This should succeed if the * semaphore has already been created. In this case, inode_find() diff --git a/fs/semaphore/sem_unlink.c b/fs/semaphore/sem_unlink.c index 6bdc30e0742..3b82bf486d5 100644 --- a/fs/semaphore/sem_unlink.c +++ b/fs/semaphore/sem_unlink.c @@ -72,7 +72,8 @@ int sem_unlink(FAR const char *name) /* Get the full path to the semaphore */ - snprintf(fullpath, MAX_SEMPATH, CONFIG_FS_NAMED_SEMPATH "/%s", name); + snprintf(fullpath, MAX_SEMPATH, + CONFIG_FS_NAMED_SEMAPHORES_VFS_PATH "/%s", name); /* Get the inode for this semaphore. */