Fix poll-related compile issues introduced with recent PTY changes
This commit is contained in:
parent
11fe9378df
commit
8fa14b8fed
@ -529,7 +529,7 @@ static int pty_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
|||||||
|
|
||||||
if ((fds->events & POLLIN) != 0)
|
if ((fds->events & POLLIN) != 0)
|
||||||
{
|
{
|
||||||
ret = file_poll(dev->pd_src, fds, setup);
|
ret = file_poll(&dev->pd_src, fds, setup);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret >= OK || ret == -ENOTTY)
|
if (ret >= OK || ret == -ENOTTY)
|
||||||
@ -538,7 +538,7 @@ static int pty_poll(FAR struct file *filep, FAR struct pollfd *fds,
|
|||||||
|
|
||||||
if ((fds->events & POLLOUT) != 0)
|
if ((fds->events & POLLOUT) != 0)
|
||||||
{
|
{
|
||||||
ret = file_poll(dev->pd_sink, fds, setup);
|
ret = file_poll(&dev->pd_sink, fds, setup);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -317,8 +317,8 @@ int fdesc_poll(int fd, FAR struct pollfd *fds, bool setup)
|
|||||||
/* The errno value has already been set */
|
/* The errno value has already been set */
|
||||||
|
|
||||||
int errorcode = get_errno();
|
int errorcode = get_errno();
|
||||||
DEBUGASSERT(errcode > 0);
|
DEBUGASSERT(errorcode > 0);
|
||||||
return -errcode;
|
return -errorcode;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Let file_poll() do the rest */
|
/* Let file_poll() do the rest */
|
||||||
|
Loading…
Reference in New Issue
Block a user