diff options
-rw-r--r-- | lib/libc/gen/basename.c | 6 | ||||
-rw-r--r-- | lib/libc/gen/dirname.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc/gen/basename.c b/lib/libc/gen/basename.c index 6c8b1f610a4..5ffa17abad5 100644 --- a/lib/libc/gen/basename.c +++ b/lib/libc/gen/basename.c @@ -1,4 +1,4 @@ -/* $OpenBSD: basename.c,v 1.3 1999/05/28 22:00:21 espie Exp $ */ +/* $OpenBSD: basename.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: basename.c,v 1.3 1999/05/28 22:00:21 espie Exp $"; +static char rcsid[] = "$OpenBSD: basename.c,v 1.4 1999/05/30 17:10:30 espie Exp $"; #endif /* not lint */ #include <errno.h> @@ -41,7 +41,7 @@ basename(path) const char *path; { static char bname[MAXPATHLEN]; - register char *endp, *startp; + register const char *endp, *startp; /* Empty or NULL string gets treated as "." */ if (path == NULL || *path == '\0') { 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') { |