Skip to content
Snippets Groups Projects
Commit d4125ebc authored by Andreas Bießmann's avatar Andreas Bießmann Committed by Tom Rini
Browse files

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: default avatarAndreas Bießmann <andreas.devel@googlemail.com>
Acked-by: default avatarJeroen Hofstee <jeroen@myspectrum.nl>
parent 1a260fe3
No related branches found
No related tags found
No related merge requests found
...@@ -333,7 +333,7 @@ static void check_trace_config_line(struct trace_configline_info *item) ...@@ -333,7 +333,7 @@ static void check_trace_config_line(struct trace_configline_info *item)
if (err == REG_NOMATCH) if (err == REG_NOMATCH)
continue; continue;
if (err != REG_NOERROR) { if (err) {
regex_report_error(&item->regex, err, "match", regex_report_error(&item->regex, err, "match",
item->name); item->name);
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment