diff options
| author | 1999-05-30 17:10:30 +0000 | |
|---|---|---|
| committer | 1999-05-30 17:10:30 +0000 | |
| commit | de152942c24a99b7ef2753d1567d0806beb6e31b (patch) | |
| tree | 42cd56248c904db244a9ff7a79479868d5baa702 /lib/libc/gen/basename.c | |
| parent | Revertion of last change, which was due to emacs' stupid idea (diff) | |
| download | wireguard-openbsd-de152942c24a99b7ef2753d1567d0806beb6e31b.tar.xz wireguard-openbsd-de152942c24a99b7ef2753d1567d0806beb6e31b.zip | |
Careless: I forgot to propagate obvious consts.
Diffstat (limited to 'lib/libc/gen/basename.c')
| -rw-r--r-- | lib/libc/gen/basename.c | 6 |
1 files changed, 3 insertions, 3 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') { |
