Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/expr explicitly use REG_BASIC when calling regcomp(3), i...



details:   https://anonhg.NetBSD.org/src/rev/ea5fe5692273
branches:  trunk
changeset: 559560:ea5fe5692273
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Mar 20 08:45:05 2004 +0000

description:
explicitly use REG_BASIC when calling regcomp(3), instead of 0

diffstat:

 bin/expr/expr.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r df1ca1d57221 -r ea5fe5692273 bin/expr/expr.y
--- a/bin/expr/expr.y   Sat Mar 20 05:22:41 2004 +0000
+++ b/bin/expr/expr.y   Sat Mar 20 08:45:05 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: expr.y,v 1.29 2003/02/14 16:17:30 grant Exp $ */
+/* $NetBSD: expr.y,v 1.30 2004/03/20 08:45:05 jdolecek Exp $ */
 
 /*_
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
 %{
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: expr.y,v 1.29 2003/02/14 16:17:30 grant Exp $");
+__RCSID("$NetBSD: expr.y,v 1.30 2004/03/20 08:45:05 jdolecek Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -116,7 +116,7 @@
                int eval;
 
                /* compile regular expression */
-               if ((eval = regcomp(&rp, $3, 0)) != 0) {
+               if ((eval = regcomp(&rp, $3, REG_BASIC)) != 0) {
                        char errbuf[256];
                        (void)regerror(eval, &rp, errbuf, sizeof(errbuf));
                        yyerror("%s", errbuf);



Home | Main Index | Thread Index | Old Index