diff options
author | Alejandro Colomar <alx.manpages@gmail.com> | 2021-02-19 16:02:56 +0100 |
---|---|---|
committer | Alejandro Colomar <alx.manpages@gmail.com> | 2021-09-05 15:06:17 +0200 |
commit | 9a8682ab6c5e04e0b82542a52ae5276426fb8593 (patch) | |
tree | 207e2fb7f444ff462bbc3272f1f2499a7aaae362 | |
parent | 16abea6cf17e4726b68eb71b174b69ab2724ea78 (diff) |
basename.3: SYNOPSIS: Add missing 'const'
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@gmail.com>
-rw-r--r-- | man3/basename.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/man3/basename.3 b/man3/basename.3 index 1492207ca..8289a1aff 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 |