=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sed/compile.c,v retrieving revision 1.28 retrieving revision 1.29 diff -c -r1.28 -r1.29 *** src/usr.bin/sed/compile.c 2008/10/16 16:34:32 1.28 --- src/usr.bin/sed/compile.c 2009/08/07 03:30:56 1.29 *************** *** 1,4 **** ! /* $OpenBSD: compile.c,v 1.28 2008/10/16 16:34:32 millert Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. --- 1,4 ---- ! /* $OpenBSD: compile.c,v 1.29 2009/08/07 03:30:56 djm Exp $ */ /*- * Copyright (c) 1992 Diomidis Spinellis. *************** *** 35,41 **** #ifndef lint /* from: static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95"; */ ! static const char rcsid[] = "$OpenBSD: compile.c,v 1.28 2008/10/16 16:34:32 millert Exp $"; #endif /* not lint */ #include --- 35,41 ---- #ifndef lint /* from: static char sccsid[] = "@(#)compile.c 8.2 (Berkeley) 4/28/95"; */ ! static const char rcsid[] = "$OpenBSD: compile.c,v 1.29 2009/08/07 03:30:56 djm Exp $"; #endif /* not lint */ #include *************** *** 439,445 **** return (p); } *repp = xmalloc(sizeof(regex_t)); ! if (p && (eval = regcomp(*repp, re, 0)) != 0) err(COMPILE, "RE error: %s", strregerror(eval, *repp)); if (maxnsub < (*repp)->re_nsub) maxnsub = (*repp)->re_nsub; --- 439,445 ---- return (p); } *repp = xmalloc(sizeof(regex_t)); ! if (p && (eval = regcomp(*repp, re, Eflag ? REG_EXTENDED : 0)) != 0) err(COMPILE, "RE error: %s", strregerror(eval, *repp)); if (maxnsub < (*repp)->re_nsub) maxnsub = (*repp)->re_nsub;