Glibc uses 'const' for the basename() parameter. Fix the prototype. ...... .../glibc$ grep_glibc_prototype basename string/string.h:511: extern char *basename (const char *__filename) __THROW __nonnull ((1)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@xxxxxxxxx> --- man3/basename.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/basename.3 b/man3/basename.3 index 65a14e8cb..51825eca4 100644 --- a/man3/basename.3 +++ b/man3/basename.3 @@ -32,7 +32,7 @@ basename, dirname \- parse pathname components .B #include <libgen.h> .PP .BI "char *dirname(char *" path ); -.BI "char *basename(char *" path ); +.BI "char *basename(const char *" path ); .fi .SH DESCRIPTION Warning: there are two different functions -- 2.31.1