aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-08 02:08:32 +0100
committerDuncaen <mail@duncano.de>2017-03-08 12:07:05 +0100
commit6b577353f547edb757f76970e039f6a9e4624142 (patch)
treebd1e271248bb5caf6d87e0a33cc1a3a1b119bc12
parentd3c4a552a6e21ac338e9fdebe2b4602f3de0d119 (diff)
downloadlobase-6b577353f547edb757f76970e039f6a9e4624142.tar.gz
usr.bin/split: just use REG_STARTEND from the imported regex(3)
-rw-r--r--usr.bin/split/split.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/usr.bin/split/split.c b/usr.bin/split/split.c
index 241bc43..dab16a8 100644
--- 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) {