summaryrefslogtreecommitdiff
path: root/libelf/elf_newdata.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf_newdata.c')
-rw-r--r--libelf/elf_newdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/elf_newdata.c b/libelf/elf_newdata.c
index db17ea58..1f42204d 100644
--- a/libelf/elf_newdata.c
+++ b/libelf/elf_newdata.c
@@ -83,7 +83,7 @@ elf_newdata (Elf_Scn *scn)
return NULL;
}
- rwlock_wrlock (scn->elf->lock);
+ RWLOCK_WRLOCK (scn->elf->lock);
if (scn->data_read && scn->data_list_rear == NULL)
{
@@ -122,7 +122,7 @@ elf_newdata (Elf_Scn *scn)
scn->data_list_rear = result;
out:
- rwlock_unlock (scn->elf->lock);
+ RWLOCK_UNLOCK (scn->elf->lock);
/* Please note that the following is thread safe and is also defined
for RESULT == NULL since it still return NULL. */