Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen use the symbolic M_ALL and trim with M_MASK
details: https://anonhg.NetBSD.org/src/rev/0f84855a8d2e
branches: trunk
changeset: 353473:0f84855a8d2e
user: christos <christos%NetBSD.org@localhost>
date: Mon May 08 14:42:16 2017 +0000
description:
use the symbolic M_ALL and trim with M_MASK
diffstat:
lib/libc/gen/glob.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f11e67e876ff -r 0f84855a8d2e lib/libc/gen/glob.c
--- a/lib/libc/gen/glob.c Mon May 08 10:00:41 2017 +0000
+++ b/lib/libc/gen/glob.c Mon May 08 14:42:16 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: glob.c,v 1.37 2017/04/26 14:56:54 christos Exp $ */
+/* $NetBSD: glob.c,v 1.38 2017/05/08 14:42:16 christos Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)glob.c 8.3 (Berkeley) 10/13/93";
#else
-__RCSID("$NetBSD: glob.c,v 1.37 2017/04/26 14:56:54 christos Exp $");
+__RCSID("$NetBSD: glob.c,v 1.38 2017/05/08 14:42:16 christos Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -958,7 +958,7 @@
nameEnd = name;
switch (c & M_MASK) {
case M_ALL:
- while (pat[1] == '*') pat++;
+ while ((pat[1] & M_MASK) == M_ALL) pat++;
patNext = pat;
nameNext = name + 1;
pat++;
Home |
Main Index |
Thread Index |
Old Index