libroot.so: make first parameter of dladdr() const.

This follows up on a mail from 2011:
https://www.freelists.org/post/haiku-development/Changing-dladdr-to-take-const-void-for-first-parameter
This commit is contained in:
Jérôme Duval 2017-09-15 22:54:18 +02:00
parent 938fd26fbb
commit 2976cf85a4
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ extern int dlclose(void *image);
extern char *dlerror(void); extern char *dlerror(void);
extern void *dlopen(const char *path, int mode); extern void *dlopen(const char *path, int mode);
extern void *dlsym(void *image, const char *symbolName); extern void *dlsym(void *image, const char *symbolName);
extern int dladdr(void *addr, Dl_info *info); extern int dladdr(const void *addr, Dl_info *info);
#ifdef __cplusplus #ifdef __cplusplus
} }

View File

@ -72,7 +72,7 @@ dlerror(void)
int int
dladdr(void *address, Dl_info *info) dladdr(const void *address, Dl_info *info)
{ {
image_id image; image_id image;
char* imagePath; char* imagePath;