提交 d4125ebc 编写于 作者: A Andreas Bießmann 提交者: Tom Rini

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: NAndreas Bießmann <andreas.devel@googlemail.com>
Acked-by: NJeroen Hofstee <jeroen@myspectrum.nl>
上级 1a260fe3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册