Module Name: src Committed By: tron Date: Wed Feb 20 19:59:34 UTC 2013
Modified Files: src/lib/libc/gen: vis.c Log Message: Don't declare a variable inside a "for" construct because it breaks the tool build which doesn't use C99. To generate a diff of this commit: cvs rdiff -u -r1.57 -r1.58 src/lib/libc/gen/vis.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/gen/vis.c diff -u src/lib/libc/gen/vis.c:1.57 src/lib/libc/gen/vis.c:1.58 --- src/lib/libc/gen/vis.c:1.57 Wed Feb 20 18:40:49 2013 +++ src/lib/libc/gen/vis.c Wed Feb 20 19:59:34 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: vis.c,v 1.57 2013/02/20 18:40:49 christos Exp $ */ +/* $NetBSD: vis.c,v 1.58 2013/02/20 19:59:34 tron Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -57,7 +57,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: vis.c,v 1.57 2013/02/20 18:40:49 christos Exp $"); +__RCSID("$NetBSD: vis.c,v 1.58 2013/02/20 19:59:34 tron Exp $"); #endif /* LIBC_SCCS and not lint */ #ifdef __FBSDID __FBSDID("$FreeBSD$"); @@ -302,7 +302,8 @@ makeextralist(int flags, const char *src return NULL; if (mbstowcs(dst, src, len) == (size_t)-1) { - for (size_t i = 0; i < len; i++) + size_t i; + for (i = 0; i < len; i++) dst[i] = (wint_t)(u_char)src[i]; d = dst + len; } else