You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/12/19 07:41:23 UTC

[incubator-nuttx] 05/05: eventfd: Change mode_semaphore from uint8_t to bool

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 0896d0680b90015a772f62ca10884fb070ba81a3
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Sun Dec 19 02:29:58 2021 +0800

    eventfd: Change mode_semaphore from uint8_t to bool
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 fs/vfs/fs_eventfd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/vfs/fs_eventfd.c b/fs/vfs/fs_eventfd.c
index 738544d..7465e9f 100644
--- a/fs/vfs/fs_eventfd.c
+++ b/fs/vfs/fs_eventfd.c
@@ -69,7 +69,7 @@ struct eventfd_priv_s
   eventfd_t    counter;         /* eventfd counter */
   unsigned int minor;           /* eventfd minor number */
   uint8_t      crefs;           /* References counts on eventfd (max: 255) */
-  uint8_t      mode_semaphore;  /* eventfd mode (semaphore or counter) */
+  bool         mode_semaphore;  /* eventfd mode (semaphore or counter) */
 
   /* The following is a list if poll structures of threads waiting for
    * driver events.