summaryrefslogtreecommitdiff
path: root/lib/libc/gen/basename.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-05-28 22:00:23 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-05-28 22:00:23 +0000
commit922c6706b295a39bcd35e8c7d2940216c69f71d6 (patch)
tree7063b2e1734fd97b4e1b55c6ecf0db4009c211c5 /lib/libc/gen/basename.c
parented77d8ac26b2a5d4493137d6c07dd2caf3001464 (diff)
proper const semantics for dirname & basename.
(this follows FreeBSD and Linux. Single Unix 2 is still illogical)
Diffstat (limited to 'lib/libc/gen/basename.c')
-rw-r--r--lib/libc/gen/basename.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/basename.c b/lib/libc/gen/basename.c
index 41f74d2fa64..6c8b1f610a4 100644
--- a/lib/libc/gen/basename.c
+++ b/lib/libc/gen/basename.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: basename.c,v 1.2 1998/06/21 22:13:39 millert Exp $ */
+/* $OpenBSD: basename.c,v 1.3 1999/05/28 22:00:21 espie Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: basename.c,v 1.2 1998/06/21 22:13:39 millert Exp $";
+static char rcsid[] = "$OpenBSD: basename.c,v 1.3 1999/05/28 22:00:21 espie Exp $";
#endif /* not lint */
#include <errno.h>
@@ -38,7 +38,7 @@ static char rcsid[] = "$OpenBSD: basename.c,v 1.2 1998/06/21 22:13:39 millert Ex
char *
basename(path)
- char *path;
+ const char *path;
{
static char bname[MAXPATHLEN];
register char *endp, *startp;