diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-01-06 22:03:38 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-01-06 22:03:38 -0500 |
commit | 839cc4e6da609a0b24f6cc32b0b11558fd77dd83 (patch) | |
tree | 7fd422f53978a8630cd7264dc268fcbd72859ed6 /src/ldso/dynlink.c | |
parent | 1e7a581ad6e2b03e91748dd1295288e053f86e04 (diff) | |
download | musl-839cc4e6da609a0b24f6cc32b0b11558fd77dd83.tar.gz 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 'src/ldso/dynlink.c')
-rw-r--r-- | src/ldso/dynlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldso/dynlink.c b/src/ldso/dynlink.c index 27d92f2b..89e1260b 100644 --- a/src/ldso/dynlink.c +++ b/src/ldso/dynlink.c @@ -1331,7 +1331,7 @@ failed: return 0; } -int __dladdr(void *addr, Dl_info *info) +int __dladdr(const void *addr, Dl_info *info) { struct dso *p; Sym *sym; @@ -1441,7 +1441,7 @@ void *__dlsym(void *restrict p, const char *restrict s, void *restrict ra) { return 0; } -int __dladdr (void *addr, Dl_info *info) +int __dladdr (const void *addr, Dl_info *info) { return 0; } |