Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen no c99 for tools.
details: https://anonhg.NetBSD.org/src/rev/5f1ae1d8fe64
branches: trunk
changeset: 332516:5f1ae1d8fe64
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 26 05:01:44 2014 +0000
description:
no c99 for tools.
diffstat:
lib/libc/gen/vis.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 33da2abc99b5 -r 5f1ae1d8fe64 lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c Fri Sep 26 02:30:27 2014 +0000
+++ b/lib/libc/gen/vis.c Fri Sep 26 05:01:44 2014 +0000
@@ -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 @@
{
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 @@
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' ';
Home |
Main Index |
Thread Index |
Old Index