diff options
-rw-r--r-- | include/libgen.h | 6 | ||||
-rw-r--r-- | lib/libc/gen/basename.3 | 6 | ||||
-rw-r--r-- | lib/libc/gen/basename.c | 4 | ||||
-rw-r--r-- | lib/libc/gen/dirname.3 | 6 | ||||
-rw-r--r-- | lib/libc/gen/dirname.c | 4 |
5 files changed, 13 insertions, 13 deletions
diff --git a/include/libgen.h b/include/libgen.h index 4312373c783..45e87e0703f 100644 --- a/include/libgen.h +++ b/include/libgen.h @@ -1,4 +1,4 @@ -/* $OpenBSD: libgen.h,v 1.9 2019/01/25 00:19:25 millert Exp $ */ +/* $OpenBSD: libgen.h,v 1.10 2020/10/20 19:30:14 naddy Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <millert@openbsd.org> @@ -22,8 +22,8 @@ #include <sys/cdefs.h> __BEGIN_DECLS -char *basename(const char *); -char *dirname(const char *); +char *basename(char *); +char *dirname(char *); __END_DECLS #endif /* _LIBGEN_H_ */ diff --git a/lib/libc/gen/basename.3 b/lib/libc/gen/basename.3 index 5ac2759afff..393765bbf34 100644 --- a/lib/libc/gen/basename.3 +++ b/lib/libc/gen/basename.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: basename.3,v 1.24 2019/01/25 00:19:25 millert Exp $ +.\" $OpenBSD: basename.3,v 1.25 2020/10/20 19:30:14 naddy Exp $ .\" .\" Copyright (c) 1997 Todd C. Miller <millert@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 25 2019 $ +.Dd $Mdocdate: October 20 2020 $ .Dt BASENAME 3 .Os .Sh NAME @@ -23,7 +23,7 @@ .Sh SYNOPSIS .In libgen.h .Ft char * -.Fn basename "const char *path" +.Fn basename "char *path" .Sh DESCRIPTION The .Fn basename diff --git a/lib/libc/gen/basename.c b/lib/libc/gen/basename.c index 2081cb95a28..721f33d76d4 100644 --- a/lib/libc/gen/basename.c +++ b/lib/libc/gen/basename.c @@ -1,4 +1,4 @@ -/* $OpenBSD: basename.c,v 1.16 2019/01/25 00:19:25 millert Exp $ */ +/* $OpenBSD: basename.c,v 1.17 2020/10/20 19:30:14 naddy Exp $ */ /* * Copyright (c) 1997, 2004 Todd C. Miller <millert@openbsd.org> @@ -22,7 +22,7 @@ #include <string.h> char * -basename(const char *path) +basename(char *path) { static char bname[PATH_MAX]; size_t len; diff --git a/lib/libc/gen/dirname.3 b/lib/libc/gen/dirname.3 index c8af757b8ee..76c191304e9 100644 --- a/lib/libc/gen/dirname.3 +++ b/lib/libc/gen/dirname.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: dirname.3,v 1.23 2019/03/08 17:33:23 benno Exp $ +.\" $OpenBSD: dirname.3,v 1.24 2020/10/20 19:30:14 naddy Exp $ .\" .\" Copyright (c) 1997 Todd C. Miller <millert@openbsd.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: March 8 2019 $ +.Dd $Mdocdate: October 20 2020 $ .Dt DIRNAME 3 .Os .Sh NAME @@ -23,7 +23,7 @@ .Sh SYNOPSIS .In libgen.h .Ft char * -.Fn dirname "const char *path" +.Fn dirname "char *path" .Sh DESCRIPTION The .Fn dirname diff --git a/lib/libc/gen/dirname.c b/lib/libc/gen/dirname.c index 7a5d83b91e0..9cc32eab681 100644 --- a/lib/libc/gen/dirname.c +++ b/lib/libc/gen/dirname.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dirname.c,v 1.16 2019/01/25 00:19:25 millert Exp $ */ +/* $OpenBSD: dirname.c,v 1.17 2020/10/20 19:30:14 naddy Exp $ */ /* * Copyright (c) 1997, 2004 Todd C. Miller <millert@openbsd.org> @@ -24,7 +24,7 @@ /* A slightly modified copy of this file exists in libexec/ld.so */ char * -dirname(const char *path) +dirname(char *path) { static char dname[PATH_MAX]; size_t len; |