diff options
Diffstat (limited to 'libelf/elf_begin.c')
-rw-r--r-- | libelf/elf_begin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/elf_begin.c b/libelf/elf_begin.c index b95b06bf..1ce8c6a2 100644 --- a/libelf/elf_begin.c +++ b/libelf/elf_begin.c @@ -1005,7 +1005,7 @@ elf_begin (fildes, cmd, ref) if (ref != NULL) /* Make sure the descriptor is not suddenly going away. */ - rwlock_rdlock (ref->lock); + RWLOCK_RDLOCK (ref->lock); else if (unlikely (fcntl (fildes, F_GETFL) == -1 && errno == EBADF)) { /* We cannot do anything productive without a file descriptor. */ @@ -1077,7 +1077,7 @@ elf_begin (fildes, cmd, ref) /* Release the lock. */ if (ref != NULL) - rwlock_unlock (ref->lock); + RWLOCK_UNLOCK (ref->lock); return retval; } |