Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen avoid c99
details: https://anonhg.NetBSD.org/src/rev/d919034268df
branches: trunk
changeset: 763167:d919034268df
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 12 05:23:41 2011 +0000
description:
avoid c99
diffstat:
lib/libc/gen/vis.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 127f32cd9131 -r d919034268df lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c Sat Mar 12 03:24:08 2011 +0000
+++ b/lib/libc/gen/vis.c Sat Mar 12 05:23:41 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vis.c,v 1.42 2011/03/12 03:24:08 christos Exp $ */
+/* $NetBSD: vis.c,v 1.43 2011/03/12 05:23:41 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.42 2011/03/12 03:24:08 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.43 2011/03/12 05:23:41 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -183,8 +183,9 @@
do_svis(char *dst, size_t *len, int c, int flag, int nextc, const char *extra)
{
int isextra;
+ size_t olen = len ? *len : 0;
+
isextra = strchr(extra, c) != NULL;
- size_t olen = len ? *len : 0;
#define HAVE(x) \
do { \
if (len) { \
Home |
Main Index |
Thread Index |
Old Index