summaryrefslogtreecommitdiffstats
path: root/libelf/elf32_offscn.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf32_offscn.c')
-rw-r--r--libelf/elf32_offscn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/elf32_offscn.c b/libelf/elf32_offscn.c
index 86eff8b1..2f9e1ced 100644
--- a/libelf/elf32_offscn.c
+++ b/libelf/elf32_offscn.c
@@ -86,7 +86,7 @@ elfw2(LIBELFBITS,offscn) (elf, offset)
&& unlikely (elfw2(LIBELFBITS,getshdr) (&runp->data[0]) == NULL))
return NULL;
- rwlock_rdlock (elf->lock);
+ RWLOCK_RDLOCK (elf->lock);
Elf_Scn *result = NULL;
@@ -114,7 +114,7 @@ elfw2(LIBELFBITS,offscn) (elf, offset)
}
out:
- rwlock_unlock (elf->lock);
+ RWLOCK_UNLOCK (elf->lock);
return result;
}