diff options
Diffstat (limited to 'nuttx/drivers/dev_null.c')
-rw-r--r-- | nuttx/drivers/dev_null.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/drivers/dev_null.c b/nuttx/drivers/dev_null.c index 8db8c3cbb..cada981fe 100644 --- a/nuttx/drivers/dev_null.c +++ b/nuttx/drivers/dev_null.c @@ -56,7 +56,7 @@ static ssize_t devnull_read(FAR struct file *, FAR char *, size_t); static ssize_t devnull_write(FAR struct file *, FAR const char *, size_t); #ifndef CONFIG_DISABLE_POLL -static int devnull_poll(FAR struct file *filp, FAR struct pollfd *poll); +static int devnull_poll(FAR struct file *filp, FAR struct pollfd *fds, boolean setup); #endif /**************************************************************************** @@ -103,9 +103,9 @@ static ssize_t devnull_write(FAR struct file *filp, FAR const char *buffer, size ****************************************************************************/ #ifndef CONFIG_DISABLE_POLL -static int devnull_poll(FAR struct file *filp, FAR struct pollfd *fds) +static int devnull_poll(FAR struct file *filp, FAR struct pollfd *fds, boolean setup) { - if (fds) + if (setup) { fds->revents |= (fds->events & (POLLIN|POLLOUT)); if (fds->revents != 0) |