From 2fdb3fc0b67757afd6fe7a244b6e14d2a546af0e Mon Sep 17 00:00:00 2001 From: graham.gower Date: Tue, 08 Dec 2009 20:20:03 -0500 Subject: Merge commit 'grg' into HEAD git-svn-id: http://opkg.googlecode.com/svn/trunk@471 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/xregex.c') 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); } -- cgit v0.9.1