summaryrefslogtreecommitdiffstats
path: root/libelf/elf_strptr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf_strptr.c')
-rw-r--r--libelf/elf_strptr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libelf/elf_strptr.c b/libelf/elf_strptr.c
index c1ea60de..6fb0c50c 100644
--- a/libelf/elf_strptr.c
+++ b/libelf/elf_strptr.c
@@ -73,7 +73,7 @@ elf_strptr (elf, idx, offset)
return NULL;
}
- rwlock_rdlock (elf->lock);
+ RWLOCK_RDLOCK (elf->lock);
char *result = NULL;
Elf_Scn *strscn;
@@ -142,7 +142,7 @@ elf_strptr (elf, idx, offset)
if (strscn->rawdata_base == NULL && ! strscn->data_read
/* Read the section data. */
- && __libelf_set_rawdata (strscn) != 0)
+ && __libelf_set_rawdata (strscn, LS_RDLOCKED) != 0)
goto out;
if (likely (strscn->rawdata_base != NULL))
@@ -166,7 +166,7 @@ elf_strptr (elf, idx, offset)
}
out:
- rwlock_unlock (elf->lock);
+ RWLOCK_UNLOCK (elf->lock);
return result;
}