summaryrefslogtreecommitdiffstats
path: root/libelf/elf32_newehdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf32_newehdr.c')
-rw-r--r--libelf/elf32_newehdr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libelf/elf32_newehdr.c b/libelf/elf32_newehdr.c
index 4e20056f..0ef68c5d 100644
--- a/libelf/elf32_newehdr.c
+++ b/libelf/elf32_newehdr.c
@@ -77,7 +77,7 @@ elfw2(LIBELFBITS,newehdr) (elf)
return NULL;
}
- rwlock_wrlock (elf->lock);
+ RWLOCK_WRLOCK (elf->lock);
if (elf->class == 0)
elf->class = ELFW(ELFCLASS,LIBELFBITS);
@@ -106,7 +106,7 @@ elfw2(LIBELFBITS,newehdr) (elf)
result = elf->state.ELFW(elf,LIBELFBITS).ehdr;
out:
- rwlock_unlock (elf->lock);
+ RWLOCK_UNLOCK (elf->lock);
return result;
}