Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/locale linted.
details: https://anonhg.NetBSD.org/src/rev/fa5e93ddbd48
branches: trunk
changeset: 511561:fa5e93ddbd48
user: yamt <yamt%NetBSD.org@localhost>
date: Thu Jun 21 19:37:06 2001 +0000
description:
linted.
diffstat:
lib/libc/locale/multibyte.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 6840c83c8433 -r fa5e93ddbd48 lib/libc/locale/multibyte.c
--- a/lib/libc/locale/multibyte.c Thu Jun 21 19:08:36 2001 +0000
+++ b/lib/libc/locale/multibyte.c Thu Jun 21 19:37:06 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: multibyte.c,v 1.10 2001/06/21 02:20:24 yamt Exp $ */
+/* $NetBSD: multibyte.c,v 1.11 2001/06/21 19:37:06 yamt Exp $ */
/*-
* Copyright (c) 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)ansi.c 8.1 (Berkeley) 6/27/93";
#else
-__RCSID("$NetBSD: multibyte.c,v 1.10 2001/06/21 02:20:24 yamt Exp $");
+__RCSID("$NetBSD: multibyte.c,v 1.11 2001/06/21 19:37:06 yamt Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -117,6 +117,7 @@
_DIAGASSERT(ps != NULL);
+ /*LINTED disgusting const castaway can pointer cast */
rl = *(_RuneLocale **)ps;
if (!rl) {
/*
@@ -489,7 +490,7 @@
}
pwcs0 = *pwcs;
- while (1) {
+ while (1/*CONSTCOND*/) {
siz = (*___wcrtomb(rl0))(rl0, buf, sizeof(buf), *pwcs0, state);
if (siz == (size_t)-1) {
errno = EILSEQ;
Home |
Main Index |
Thread Index |
Old Index