Module Name: src
Committed By: christos
Date: Fri Sep 26 05:01:44 UTC 2014
Modified Files:
src/lib/libc/gen: vis.c
Log Message:
no c99 for tools.
To generate a diff of this commit:
cvs rdiff -u -r1.63 -r1.64 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.63 src/lib/libc/gen/vis.c:1.64
--- src/lib/libc/gen/vis.c:1.63 Thu Sep 25 21:21:07 2014
+++ src/lib/libc/gen/vis.c Fri Sep 26 01:01:44 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.c,v 1.63 2014/09/26 01:21:07 christos Exp $ */
+/* $NetBSD: vis.c,v 1.64 2014/09/26 05:01:44 christos 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.63 2014/09/26 01:21:07 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.64 2014/09/26 05:01:44 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#ifdef __FBSDID
__FBSDID("$FreeBSD$");
@@ -313,6 +313,7 @@ makeextralist(int flags, const char *src
{
wchar_t *dst, *d;
size_t len;
+ const wchar_t *s;
len = strlen(src);
if ((dst = calloc(len + MAXEXTRAS, sizeof(*dst))) == NULL)
@@ -327,11 +328,11 @@ makeextralist(int flags, const char *src
d = dst + wcslen(dst);
if (flags & VIS_GLOB)
- for (const wchar_t *s = char_glob; *s; *d++ = *s++)
+ for (s = char_glob; *s; *d++ = *s++)
continue;
if (flags & VIS_SHELL)
- for (const wchar_t *s = char_shell; *s; *d++ = *s++)
+ for (s = char_shell; *s; *d++ = *s++)
continue;
if (flags & VIS_SP) *d++ = L' ';