diff options
author | Roland McGrath <roland@redhat.com> | 2008-08-25 22:55:17 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2008-08-25 22:55:17 +0000 |
commit | b4d6f0f8064f2b706ea9035ef0393d8299671390 (patch) | |
tree | 58d3da51253302bc5b8f2198d8462942ff43f464 /libelf/gelf_update_shdr.c | |
parent | f729d77881262094d365d33ac51063e25a02e357 (diff) | |
download | android_external_elfutils-b4d6f0f8064f2b706ea9035ef0393d8299671390.tar.gz android_external_elfutils-b4d6f0f8064f2b706ea9035ef0393d8299671390.tar.bz2 android_external_elfutils-b4d6f0f8064f2b706ea9035ef0393d8299671390.zip |
Fix up bogon and missing log entries from .pmachata.threads branch.
Diffstat (limited to 'libelf/gelf_update_shdr.c')
-rw-r--r-- | libelf/gelf_update_shdr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libelf/gelf_update_shdr.c b/libelf/gelf_update_shdr.c index dccf6ade..c57eab80 100644 --- a/libelf/gelf_update_shdr.c +++ b/libelf/gelf_update_shdr.c @@ -68,12 +68,12 @@ gelf_update_shdr (Elf_Scn *scn, GElf_Shdr *src) return 0; elf = scn->elf; - RWLOCK_WRLOCK (elf->lock); + rwlock_wrlock (elf->lock); if (elf->class == ELFCLASS32) { Elf32_Shdr *shdr - = scn->shdr.e32 ?: __elf32_getshdr_internal (scn, LS_WRLOCKED); + = scn->shdr.e32 ?: __elf32_getshdr_wrlock (scn); if (shdr == NULL) { @@ -108,7 +108,7 @@ gelf_update_shdr (Elf_Scn *scn, GElf_Shdr *src) else { Elf64_Shdr *shdr - = scn->shdr.e64 ?: __elf64_getshdr_internal (scn, LS_WRLOCKED); + = scn->shdr.e64 ?: __elf64_getshdr_wrlock (scn); if (shdr == NULL) { @@ -123,7 +123,7 @@ gelf_update_shdr (Elf_Scn *scn, GElf_Shdr *src) result = 1; out: - RWLOCK_UNLOCK (elf->lock); + rwlock_unlock (elf->lock); return result; } |