lobase

Linux port of OpenBSDs userland.
Log | Files | Refs | README

commit 6b577353f547edb757f76970e039f6a9e4624142
parent d3c4a552a6e21ac338e9fdebe2b4602f3de0d119
Author: Duncaen <mail@duncano.de>
Date:   Wed,  8 Mar 2017 02:08:32 +0100

usr.bin/split: just use REG_STARTEND from the imported regex(3)

Diffstat:
usr.bin/split/split.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c @@ -242,9 +242,6 @@ split2(void) pmatch.rm_so = 0; pmatch.rm_eo = len - 1; -#if !defined(REG_STARTEND) -#define REG_STARTEND 0 -#endif if (regexec(&rgx, bfr, 0, &pmatch, REG_STARTEND) == 0) newfile(); } else if (lcnt++ == numlines) {