summaryrefslogtreecommitdiffstats
path: root/libelf/gelf_getshdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/gelf_getshdr.c')
-rw-r--r--libelf/gelf_getshdr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libelf/gelf_getshdr.c b/libelf/gelf_getshdr.c
index f5457a7a..8b46dfa8 100644
--- a/libelf/gelf_getshdr.c
+++ b/libelf/gelf_getshdr.c
@@ -74,13 +74,13 @@ gelf_getshdr (scn, dst)
return NULL;
}
- RWLOCK_RDLOCK (scn->elf->lock);
+ rwlock_rdlock (scn->elf->lock);
if (scn->elf->class == ELFCLASS32)
{
/* Copy the elements one-by-one. */
Elf32_Shdr *shdr
- = scn->shdr.e32 ?: __elf32_getshdr_internal (scn, LS_RDLOCKED);
+ = scn->shdr.e32 ?: __elf32_getshdr_rdlock (scn);
if (shdr == NULL)
{
@@ -106,7 +106,7 @@ gelf_getshdr (scn, dst)
else
{
Elf64_Shdr *shdr
- = scn->shdr.e64 ?: __elf64_getshdr_internal (scn, LS_RDLOCKED);
+ = scn->shdr.e64 ?: __elf64_getshdr_rdlock (scn);
if (shdr == NULL)
{
@@ -119,7 +119,7 @@ gelf_getshdr (scn, dst)
}
out:
- RWLOCK_UNLOCK (scn->elf->lock);
+ rwlock_unlock (scn->elf->lock);
return result;
}