Module Name:    src
Committed By:   christos
Date:           Sat Mar 12 05:23:41 UTC 2011

Modified Files:
        src/lib/libc/gen: vis.c

Log Message:
avoid c99


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 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.42 src/lib/libc/gen/vis.c:1.43
--- src/lib/libc/gen/vis.c:1.42	Fri Mar 11 22:24:08 2011
+++ src/lib/libc/gen/vis.c	Sat Mar 12 00:23:41 2011
@@ -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;
-	isextra = strchr(extra, c) != NULL;
 	size_t olen = len ? *len : 0;
+
+	isextra = strchr(extra, c) != NULL;
 #define HAVE(x) \
 	do { \
 		if (len) { \

Reply via email to