summaryrefslogtreecommitdiffstats
path: root/libelf/elf_nextscn.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf_nextscn.c')
-rw-r--r--libelf/elf_nextscn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/elf_nextscn.c b/libelf/elf_nextscn.c
index a1842bb3..0a21c76f 100644
--- a/libelf/elf_nextscn.c
+++ b/libelf/elf_nextscn.c
@@ -69,7 +69,7 @@ elf_nextscn (elf, scn)
if (elf == NULL)
return NULL;
- rwlock_rdlock (elf->lock);
+ RWLOCK_RDLOCK (elf->lock);
if (scn == NULL)
{
@@ -103,7 +103,7 @@ elf_nextscn (elf, scn)
}
}
- rwlock_unlock (elf->lock);
+ RWLOCK_UNLOCK (elf->lock);
return result;
}