summaryrefslogtreecommitdiffstats
path: root/libelf/elf_readall.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf_readall.c')
-rw-r--r--libelf/elf_readall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libelf/elf_readall.c b/libelf/elf_readall.c
index 8f171b21..71daea4b 100644
--- a/libelf/elf_readall.c
+++ b/libelf/elf_readall.c
@@ -90,12 +90,12 @@ __libelf_readall (elf)
Elf *elf;
{
/* Get the file. */
- rwlock_wrlock (elf->lock);
+ RWLOCK_WRLOCK (elf->lock);
if (elf->map_address == NULL && unlikely (elf->fildes == -1))
{
__libelf_seterrno (ELF_E_INVALID_HANDLE);
- rwlock_unlock (elf->lock);
+ RWLOCK_UNLOCK (elf->lock);
return NULL;
}
@@ -147,7 +147,7 @@ __libelf_readall (elf)
libelf_release_all (elf);
}
- rwlock_unlock (elf->lock);
+ RWLOCK_UNLOCK (elf->lock);
return (char *) elf->map_address;
}