diff options
author | 1998-01-18 22:02:45 +0000 | |
---|---|---|
committer | 1998-01-18 22:02:45 +0000 | |
commit | e97ae8d8dd1c5682cbcb1bf272e6b4b18a7d2238 (patch) | |
tree | f72aa3b75f0c0a4c5453b9ac7a181c36ad44e18e | |
parent | Support extended (modern) instead of basic (obsolescent) (diff) | |
download | wireguard-openbsd-e97ae8d8dd1c5682cbcb1bf272e6b4b18a7d2238.tar.xz wireguard-openbsd-e97ae8d8dd1c5682cbcb1bf272e6b4b18a7d2238.zip |
Support extended (modern) instead of basic (obsolescent) regular expressions.
-rw-r--r-- | bin/ed/re.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/re.c b/bin/ed/re.c index 276094b7d73..9d0a5db97f1 100644 --- a/bin/ed/re.c +++ b/bin/ed/re.c @@ -1,4 +1,4 @@ -/* $OpenBSD: re.c,v 1.5 1996/12/14 12:17:57 mickey Exp $ */ +/* $OpenBSD: re.c,v 1.6 1998/01/18 22:02:45 millert Exp $ */ /* $NetBSD: re.c,v 1.14 1995/03/21 09:04:48 cgd Exp $ */ /* re.c: This file contains the regular expression interface routines for @@ -33,7 +33,7 @@ #if 0 static char *rcsid = "@(#)re.c,v 1.6 1994/02/01 00:34:43 alm Exp"; #else -static char rcsid[] = "$OpenBSD: re.c,v 1.5 1996/12/14 12:17:57 mickey Exp $"; +static char rcsid[] = "$OpenBSD: re.c,v 1.6 1998/01/18 22:02:45 millert Exp $"; #endif #endif /* not lint */ @@ -73,7 +73,7 @@ get_compiled_pattern() return NULL; } patlock = 0; - if ((n = regcomp(exp, exps, 0)) != 0) { + if ((n = regcomp(exp, exps, REG_EXTENDED)) != 0) { regerror(n, exp, errmsg, sizeof errmsg); free(exp); return exp = NULL; |