Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/locale fix const castaway.



details:   https://anonhg.NetBSD.org/src/rev/4f434dd4c502
branches:  trunk
changeset: 500933:4f434dd4c502
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 20 20:57:20 2000 +0000

description:
fix const castaway.

diffstat:

 lib/libc/locale/wmemchr.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 65e21bd07399 -r 4f434dd4c502 lib/libc/locale/wmemchr.c
--- a/lib/libc/locale/wmemchr.c Wed Dec 20 20:56:34 2000 +0000
+++ b/lib/libc/locale/wmemchr.c Wed Dec 20 20:57:20 2000 +0000
@@ -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 <sys/cdefs.h>
 #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 <wchar.h>
@@ -45,8 +45,10 @@
        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;



Home | Main Index | Thread Index | Old Index