Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen cast "~0" to (size_t) when passing to a size_t ...



details:   https://anonhg.NetBSD.org/src/rev/d6b30c5eede6
branches:  trunk
changeset: 763210:d6b30c5eede6
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sun Mar 13 07:40:44 2011 +0000

description:
cast "~0" to (size_t) when passing to a size_t taking function.
fixes lint build errors.

diffstat:

 lib/libc/gen/unvis.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 1873bd881931 -r d6b30c5eede6 lib/libc/gen/unvis.c
--- a/lib/libc/gen/unvis.c      Sun Mar 13 05:26:14 2011 +0000
+++ b/lib/libc/gen/unvis.c      Sun Mar 13 07:40:44 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unvis.c,v 1.34 2011/03/12 19:52:48 christos Exp $      */
+/*     $NetBSD: unvis.c,v 1.35 2011/03/13 07:40:44 mrg Exp $   */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)unvis.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: unvis.c,v 1.34 2011/03/12 19:52:48 christos Exp $");
+__RCSID("$NetBSD: unvis.c,v 1.35 2011/03/13 07:40:44 mrg Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -528,13 +528,13 @@
 int
 strunvisx(char *dst, const char *src, int flag)
 {
-       return strnunvisx(dst, ~0, src, flag);
+       return strnunvisx(dst, (size_t)~0, src, flag);
 }
 
 int
 strunvis(char *dst, const char *src)
 {
-       return strnunvisx(dst, ~0, src, 0);
+       return strnunvisx(dst, (size_t)~0, src, 0);
 }
 
 int



Home | Main Index | Thread Index | Old Index