diff options
Diffstat (limited to 'nuttx/lib/misc/lib_filesem.c')
-rw-r--r-- | nuttx/lib/misc/lib_filesem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/lib/misc/lib_filesem.c b/nuttx/lib/misc/lib_filesem.c index 1f2f80b3c..e6a3fdb67 100644 --- a/nuttx/lib/misc/lib_filesem.c +++ b/nuttx/lib/misc/lib_filesem.c @@ -103,7 +103,7 @@ void lib_take_semaphore(FAR struct file_struct *stream) * the wait was awakened by a signal. */ - ASSERT(*get_errno_ptr() == EINTR); + ASSERT(get_errno() == EINTR); } /* We have it. Claim the stak and return */ |