summaryrefslogtreecommitdiffstats
path: root/libelf/gelf_update_rel.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/gelf_update_rel.c')
-rw-r--r--libelf/gelf_update_rel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/gelf_update_rel.c b/libelf/gelf_update_rel.c
index 049b71a1..b40ba27a 100644
--- a/libelf/gelf_update_rel.c
+++ b/libelf/gelf_update_rel.c
@@ -82,7 +82,7 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
}
scn = data_scn->s;
- rwlock_wrlock (scn->elf->lock);
+ RWLOCK_WRLOCK (scn->elf->lock);
if (scn->elf->class == ELFCLASS32)
{
@@ -129,7 +129,7 @@ gelf_update_rel (Elf_Data *dst, int ndx, GElf_Rel *src)
scn->flags |= ELF_F_DIRTY;
out:
- rwlock_unlock (scn->elf->lock);
+ RWLOCK_UNLOCK (scn->elf->lock);
return result;
}