summaryrefslogtreecommitdiffstats
path: root/libelf/gelf_getshdr.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2008-08-25 22:55:17 +0000
committerRoland McGrath <[email protected]>2008-08-25 22:55:17 +0000
commitb4d6f0f8064f2b706ea9035ef0393d8299671390 (patch)
tree58d3da51253302bc5b8f2198d8462942ff43f464 /libelf/gelf_getshdr.c
parentf729d77881262094d365d33ac51063e25a02e357 (diff)
Fix up bogon and missing log entries from .pmachata.threads branch.
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;
}