From de152942c24a99b7ef2753d1567d0806beb6e31b Mon Sep 17 00:00:00 2001 From: espie Date: Sun, 30 May 1999 17:10:30 +0000 Subject: Careless: I forgot to propagate obvious consts. --- lib/libc/gen/basename.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc/gen/basename.c') 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 @@ -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 @@ -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') { -- cgit v1.2.3-59-g8ed1b