summaryrefslogtreecommitdiffstats
path: root/libopkg/xregex.c
diff options
context:
space:
mode:
Diffstat (limited to 'libopkg/xregex.c')
-rw-r--r--libopkg/xregex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libopkg/xregex.c b/libopkg/xregex.c
index ba22b7d..639e3ef 100644
--- a/libopkg/xregex.c
+++ b/libopkg/xregex.c
@@ -35,13 +35,14 @@ int xregcomp(regex_t *preg, const char *regex, int cflags)
static void print_regcomp_err(const regex_t *preg, int err)
{
- int size;
+ unsigned int size;
char *error;
- fprintf(stderr, "%s: Error compiling regex:", __FUNCTION__);
size = regerror(err, preg, 0, 0);
error = xcalloc(1, size);
regerror(err, preg, error, size);
- fprintf(stderr, "%s\n", error);
+
+ opkg_msg(ERROR, "Internal error compiling regex: %s.", error);
+
free(error);
}