summaryrefslogtreecommitdiff
path: root/lib/libc/gen/dirname.c
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1999-05-30 17:10:31 +0000
committerMarc Espie <espie@cvs.openbsd.org>1999-05-30 17:10:31 +0000
commit4e63e4c2426933570d05b8437012a3b21cfe1dc1 (patch)
tree9ab4afa1ef1d9aa807156d9212195e71d47d9d6f /lib/libc/gen/dirname.c
parentfc340e5cdf5a38d592368f5d9cd5c22449ec8902 (diff)
Careless: I forgot to propagate obvious consts.
Diffstat (limited to 'lib/libc/gen/dirname.c')
-rw-r--r--lib/libc/gen/dirname.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/dirname.c b/lib/libc/gen/dirname.c
index 23fe46691ae..573c7d3bfcb 100644
--- a/lib/libc/gen/dirname.c
+++ b/lib/libc/gen/dirname.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dirname.c,v 1.3 1999/05/28 22:00:21 espie Exp $ */
+/* $OpenBSD: dirname.c,v 1.4 1999/05/30 17:10:30 espie Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: dirname.c,v 1.3 1999/05/28 22:00:21 espie Exp $";
+static char rcsid[] = "$OpenBSD: dirname.c,v 1.4 1999/05/30 17:10:30 espie Exp $";
#endif /* not lint */
#include <errno.h>
@@ -41,7 +41,7 @@ dirname(path)
const char *path;
{
static char bname[MAXPATHLEN];
- register char *endp;
+ register const char *endp;
/* Empty or NULL string gets treated as "." */
if (path == NULL || *path == '\0') {