summaryrefslogtreecommitdiffstats
path: root/libelf/elf_newscn.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-08-25 22:55:17 +0000
committerRoland McGrath <roland@redhat.com>2008-08-25 22:55:17 +0000
commitb4d6f0f8064f2b706ea9035ef0393d8299671390 (patch)
tree58d3da51253302bc5b8f2198d8462942ff43f464 /libelf/elf_newscn.c
parentf729d77881262094d365d33ac51063e25a02e357 (diff)
downloadandroid_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/elf_newscn.c')
-rw-r--r--libelf/elf_newscn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/elf_newscn.c b/libelf/elf_newscn.c
index da4ca723..aefab334 100644
--- a/libelf/elf_newscn.c
+++ b/libelf/elf_newscn.c
@@ -80,7 +80,7 @@ elf_newscn (elf)
assert (offsetof (Elf, state.elf32.scns)
== offsetof (Elf, state.elf64.scns));
- RWLOCK_WRLOCK (elf->lock);
+ rwlock_wrlock (elf->lock);
again:
if (elf->state.elf.scns_last->cnt < elf->state.elf.scns_last->max)
@@ -170,7 +170,7 @@ elf_newscn (elf)
result->flags |= ELF_F_DIRTY;
out:
- RWLOCK_UNLOCK (elf->lock);
+ rwlock_unlock (elf->lock);
return result;
}