Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen add braces, per joerg.
details: https://anonhg.NetBSD.org/src/rev/ec4b358fe21c
branches: trunk
changeset: 761547:ec4b358fe21c
user: christos <christos%NetBSD.org@localhost>
date: Mon Jan 31 19:10:18 2011 +0000
description:
add braces, per joerg.
diffstat:
lib/libc/gen/fnmatch.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r ffc10f87b8d9 -r ec4b358fe21c lib/libc/gen/fnmatch.c
--- a/lib/libc/gen/fnmatch.c Mon Jan 31 18:56:04 2011 +0000
+++ b/lib/libc/gen/fnmatch.c Mon Jan 31 19:10:18 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fnmatch.c,v 1.23 2011/01/31 15:07:29 christos Exp $ */
+/* $NetBSD: fnmatch.c,v 1.24 2011/01/31 19:10:18 christos Exp $ */
/*
* Copyright (c) 1989, 1993, 1994
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)fnmatch.c 8.2 (Berkeley) 4/16/94";
#else
-__RCSID("$NetBSD: fnmatch.c,v 1.23 2011/01/31 15:07:29 christos Exp $");
+__RCSID("$NetBSD: fnmatch.c,v 1.24 2011/01/31 19:10:18 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -122,7 +122,7 @@
if (recursion-- == 0)
return FNM_NORES;
- for (stringstart = string;;)
+ for (stringstart = string;;) {
switch (c = FOLDCASE(*pattern++, flags)) {
case EOS:
if ((flags & FNM_LEADING_DIR) && *string == '/')
@@ -202,6 +202,7 @@
return FNM_NOMATCH;
break;
}
+ }
/* NOTREACHED */
}
Home |
Main Index |
Thread Index |
Old Index