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.
Showing
想要评论请 注册 或 登录