From: Alejandro Colomar Date: Sun, 9 May 2021 21:38:59 +0000 (+0200) Subject: dladdr.3: SYNOPSIS: Add missing 'const' X-Git-Tag: man-pages-5.12~199 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bacf09154d98166a0f2f72f72055bb18916d3493;p=thirdparty%2Fman-pages.git dladdr.3: SYNOPSIS: Add missing 'const' Glibc uses 'const' for the 1st parameter of these functions. Fix the prototypes. ...... .../glibc$ grep_glibc_prototype dladdr dlfcn/dlfcn.h:98: extern int dladdr (const void *__address, Dl_info *__info) __THROW __nonnull ((2)); .../glibc$ grep_glibc_prototype dladdr1 dlfcn/dlfcn.h:102: extern int dladdr1 (const void *__address, Dl_info *__info, void **__extra_info, int __flags) __THROW __nonnull ((2)); .../glibc$ Signed-off-by: Alejandro Colomar Signed-off-by: Michael Kerrisk --- diff --git a/man3/dladdr.3 b/man3/dladdr.3 index 19944174b2..c95df4e49b 100644 --- a/man3/dladdr.3 +++ b/man3/dladdr.3 @@ -31,9 +31,9 @@ dladdr, dladdr1 \- translate address to symbolic information .B #define _GNU_SOURCE .B #include .PP -.BI "int dladdr(void *" addr ", Dl_info *" info ); -.BI "int dladdr1(void *" addr ", Dl_info *" info ", void **" \ - extra_info ", int " flags ); +.BI "int dladdr(const void *" addr ", Dl_info *" info ); +.BI "int dladdr1(const void *" addr ", Dl_info *" info ", void **" extra_info , +.BI " int " flags ); .PP Link with \fI\-ldl\fP. .fi