From: =?UTF-8?q?Andreas=20Bie=C3=9Fmann?= Date: Tue, 2 Jul 2013 08:37:36 +0200 Subject: [U-Boot] [PATCH v2 2/3] tools/proftool: remove REG_NOERROR In-Reply-To: <1372747057-85539-1-git-send-email-andreas.devel@googlemail.com> References: <1372747057-85539-1-git-send-email-andreas.devel@googlemail.com> Message-ID: <1372747057-85539-3-git-send-email-andreas.devel@googlemail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Remove non portable usage of REG_NOERROR. BSD (like OS X) variants of regex.h do not declare REG_NOERROR, even GNU regex(3) do mention REG_NOERROR, just remove it. Signed-off-by: Andreas Bie?mann --- Changes in v2: - remove REG_NOERROR instead of defining it conditionally (as Jeroen suggested) tools/proftool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/proftool.c b/tools/proftool.c index a48ed28..aa05e77 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; -- 1.8.3.1