diff options
| author | martin <martin@NetBSD.org> | 2005-11-30 09:35:58 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2005-11-30 09:35:58 +0000 |
| commit | 34fb53a2f738123ff06fa3a39d463a2071af442d (patch) | |
| tree | ce17d7b5a22fc83e3e5aafd019d2fb60d2b2ef95 /lib/libc/string | |
| parent | 51a339dd4b3967fdfbfc5b5f8bda3a92b34d199d (diff) | |
Fix warns=4 (via __UNCONST())
Diffstat (limited to 'lib/libc/string')
| -rw-r--r-- | lib/libc/string/index.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/string/index.c b/lib/libc/string/index.c index 51a24bc2717..c80981c57c8 100644 --- a/lib/libc/string/index.c +++ b/lib/libc/string/index.c @@ -1,4 +1,4 @@ -/* $NetBSD: index.c,v 1.13 2003/08/07 16:43:48 agc Exp $ */ +/* $NetBSD: index.c,v 1.14 2005/11/30 09:35:58 martin Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)index.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: index.c,v 1.13 2003/08/07 16:43:48 agc Exp $"); +__RCSID("$NetBSD: index.c,v 1.14 2005/11/30 09:35:58 martin Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -61,7 +61,7 @@ index(p, ch) for (;; ++p) { if (*p == ch) { /* LINTED const cast-away */ - return((char *)p); + return(__UNCONST(p)); } if (!*p) return((char *)NULL); |
