From 6f034c164013491ba623bdebfbe3bf6d954f538e Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 20 Dec 2000 20:57:20 +0000 Subject: [PATCH] fix const castaway. --- lib/libc/locale/wmemchr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/libc/locale/wmemchr.c b/lib/libc/locale/wmemchr.c index 61e4efb0c338..5dfb066bf345 100644 --- a/lib/libc/locale/wmemchr.c +++ b/lib/libc/locale/wmemchr.c @@ -1,4 +1,4 @@ -/* $NetBSD: wmemchr.c,v 1.2 2000/12/20 14:53:24 itojun Exp $ */ +/* $NetBSD: wmemchr.c,v 1.3 2000/12/20 20:57:20 christos Exp $ */ /*- * Copyright (c)1999 Citrus Project, @@ -30,7 +30,7 @@ #include #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: wmemchr.c,v 1.2 2000/12/20 14:53:24 itojun Exp $"); +__RCSID("$NetBSD: wmemchr.c,v 1.3 2000/12/20 20:57:20 christos Exp $"); #endif /* LIBC_SCCS and not lint */ #include @@ -45,8 +45,10 @@ wmemchr(s, c, n) size_t i; for (i = 0; i < n; i++) { - if (*s == c) + if (*s == c) { + /* LINTED const castaway */ return (wchar_t *)s; + } s++; } return NULL;