summaryrefslogtreecommitdiff
path: root/include/dlfcn.h
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2014-01-06 22:03:38 -0500
committerRich Felker <dalias@aerifal.cx>2014-01-06 22:03:38 -0500
commit839cc4e6da609a0b24f6cc32b0b11558fd77dd83 (patch)
tree7fd422f53978a8630cd7264dc268fcbd72859ed6 /include/dlfcn.h
parent1e7a581ad6e2b03e91748dd1295288e053f86e04 (diff)
downloadmusl-839cc4e6da609a0b24f6cc32b0b11558fd77dd83.tar.gz
musl-839cc4e6da609a0b24f6cc32b0b11558fd77dd83.tar.bz2
musl-839cc4e6da609a0b24f6cc32b0b11558fd77dd83.tar.xz
musl-839cc4e6da609a0b24f6cc32b0b11558fd77dd83.zip
const-qualify the address argument to dladdr
this agrees with implementation practice on glibc and BSD systems, and is the const-correct way to do things; it eliminates warnings from passing pointers to const. the prototype without const came from seemingly erroneous man pages.
Diffstat (limited to 'include/dlfcn.h')
-rw-r--r--include/dlfcn.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dlfcn.h b/include/dlfcn.h
index db26194b..78fb0733 100644
--- a/include/dlfcn.h
+++ b/include/dlfcn.h
@@ -31,7 +31,7 @@ typedef struct {
const char *dli_sname;
void *dli_saddr;
} Dl_info;
-int dladdr(void *, Dl_info *);
+int dladdr(const void *, Dl_info *);
int dlinfo(void *, int, void *);
#endif