From: Andreas Bießmann Date: Tue, 2 Jul 2013 06:37:36 +0000 (+0200) Subject: tools/proftool: remove REG_NOERROR X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d4125ebc8dae28e8ade858ba519bca7fbeb6ccae;p=project%2Fbcm63xx%2Fu-boot.git tools/proftool: remove REG_NOERROR Remove non portable usage of REG_NOERROR. BSD (like OS X) variants of regex.h do not declare REG_NOERROR, even GNU regex(3) does not mention REG_NOERROR, just remove it. Signed-off-by: Andreas Bießmann Acked-by: Jeroen Hofstee --- diff --git a/tools/proftool.c b/tools/proftool.c index a48ed286a5..aa05e77ece 100644 --- a/tools/proftool.c +++ b/tools/proftool.c @@ -333,7 +333,7 @@ static void check_trace_config_line(struct trace_configline_info *item) if (err == REG_NOMATCH) continue; - if (err != REG_NOERROR) { + if (err) { regex_report_error(&item->regex, err, "match", item->name); break;