From 839cc4e6da609a0b24f6cc32b0b11558fd77dd83 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Mon, 6 Jan 2014 22:03:38 -0500 Subject: 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. --- include/dlfcn.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/dlfcn.h') 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 -- cgit v1.2.1