summaryrefslogtreecommitdiffstats
path: root/libelf/gelf_update_ehdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/gelf_update_ehdr.c')
-rw-r--r--libelf/gelf_update_ehdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/gelf_update_ehdr.c b/libelf/gelf_update_ehdr.c
index 4d5c2b6c..2da292c3 100644
--- a/libelf/gelf_update_ehdr.c
+++ b/libelf/gelf_update_ehdr.c
@@ -72,7 +72,7 @@ gelf_update_ehdr (Elf *elf, GElf_Ehdr *src)
return 0;
}
- rwlock_wrlock (elf->lock);
+ RWLOCK_WRLOCK (elf->lock);
if (elf->class == ELFCLASS32)
{
@@ -130,7 +130,7 @@ gelf_update_ehdr (Elf *elf, GElf_Ehdr *src)
result = 1;
out:
- rwlock_unlock (elf->lock);
+ RWLOCK_UNLOCK (elf->lock);
return result;
}