From cc0e1e4b83d69441cc5f61ea87eda5458ee9fae3 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 25 Apr 2012 13:42:07 +0200 Subject: Replace some uses of error with fprintf error is not standard so it has no business being used in generic code. The linux-gnu back end is useful for android, and that doesn't have that interface either. --- filter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'filter.c') diff --git a/filter.c b/filter.c index b4fa330..003010d 100644 --- a/filter.c +++ b/filter.c @@ -19,8 +19,9 @@ */ #include -#include #include +#include +#include #include "filter.h" #include "library.h" @@ -117,7 +118,7 @@ re_match_or_error(regex_t *re, const char *name, const char *what) char buf[200]; regerror(status, re, buf, sizeof buf); - error(0, 0, "Error when matching %s: %s", name, buf); + fprintf(stderr, "Error when matching %s: %s\n", name, buf); return 0; } -- cgit v1.2.3