mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 04:58:28 +00:00
drivers/video/fb.c: Replace sem_getvalue with nxsem_getvalue
Because sem_getvalue modifies errno.
This commit is contained in:
parent
ddd279d700
commit
c3b2910178
1 changed files with 1 additions and 1 deletions
|
|
@ -1462,7 +1462,7 @@ static void fb_sem_post(FAR struct fb_chardev_s *fb, int overlay)
|
|||
{
|
||||
int semcount = 0;
|
||||
|
||||
sem_getvalue(&priv->wait, &semcount);
|
||||
nxsem_get_value(&priv->wait, &semcount);
|
||||
if (semcount >= 0)
|
||||
{
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue