diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-15 00:18:32 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2009-12-15 00:18:32 +0000 |
commit | a4155eb61d984728e938cd4b1ab0aca7b9513d78 (patch) | |
tree | 13835bea2d34fe02e0b620abf761396f330dc860 /nuttx/fs/fs_poll.c | |
parent | d7d4a0d765d12cc152c62a37b490702c39d76447 (diff) | |
download | px4-nuttx-a4155eb61d984728e938cd4b1ab0aca7b9513d78.tar.gz px4-nuttx-a4155eb61d984728e938cd4b1ab0aca7b9513d78.tar.bz2 px4-nuttx-a4155eb61d984728e938cd4b1ab0aca7b9513d78.zip |
Switching to C99 stdint/stdbool.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2341 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/fs/fs_poll.c')
-rw-r--r-- | nuttx/fs/fs_poll.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/nuttx/fs/fs_poll.c b/nuttx/fs/fs_poll.c index 5e377de94..20a16e3e8 100644 --- a/nuttx/fs/fs_poll.c +++ b/nuttx/fs/fs_poll.c @@ -39,7 +39,8 @@ #include <nuttx/config.h> -#include <sys/types.h> +#include <stdint.h> +#include <stdbool.h> #include <poll.h> #include <wdog.h> #include <errno.h> @@ -55,7 +56,7 @@ #ifndef CONFIG_DISABLE_POLL /**************************************************************************** - * Definitions + * Pre-processor Definitions ****************************************************************************/ #define poll_semgive(sem) sem_post(sem) @@ -93,7 +94,7 @@ static void poll_semtake(FAR sem_t *sem) ****************************************************************************/ #if CONFIG_NFILE_DESCRIPTORS > 0 -static int poll_fdsetup(int fd, FAR struct pollfd *fds, boolean setup) +static int poll_fdsetup(int fd, FAR struct pollfd *fds, bool setup) { FAR struct filelist *list; FAR struct file *this_file; @@ -169,7 +170,7 @@ static inline int poll_setup(FAR struct pollfd *fds, nfds_t nfds, sem_t *sem) /* Set up the poll */ - ret = poll_fdsetup(fds[i].fd, &fds[i], TRUE); + ret = poll_fdsetup(fds[i].fd, &fds[i], true); if (ret < 0) { return ret; @@ -202,7 +203,7 @@ static inline int poll_teardown(FAR struct pollfd *fds, nfds_t nfds, int *count) { /* Teardown the poll */ - status = poll_fdsetup(fds[i].fd, &fds[i], FALSE); + status = poll_fdsetup(fds[i].fd, &fds[i], false); if (status < 0) { ret = status; @@ -231,7 +232,7 @@ static inline int poll_teardown(FAR struct pollfd *fds, nfds_t nfds, int *count) * ****************************************************************************/ -static void poll_timeout(int argc, uint32 isem, ...) +static void poll_timeout(int argc, uint32_t isem, ...) { /* Wake up the poller */ @@ -293,7 +294,7 @@ int poll(FAR struct pollfd *fds, nfds_t nfds, int timeout) */ wdog = wd_create(); - wd_start(wdog, MSEC2TICK(timeout), poll_timeout, 1, (uint32)&sem); + wd_start(wdog, MSEC2TICK(timeout), poll_timeout, 1, (uint32_t)&sem); poll_semtake(&sem); wd_delete(wdog); } |