summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-14 19:30:23 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-02-14 19:30:23 +0100
commit07e46d2fc06d2296cca83e5c1a1c51cb9d0b34f8 (patch)
tree5e3965d675ac82fee6cc0836acc853d8359f9f07 /src
parenta56e13d770c8852b8d7d96e44164544876bbfe4f (diff)
downloadpacman-07e46d2fc06d2296cca83e5c1a1c51cb9d0b34f8.tar.gz
pacman-07e46d2fc06d2296cca83e5c1a1c51cb9d0b34f8.tar.xz
better use ERR than fprintf for error messages
Diffstat (limited to 'src')
-rw-r--r--src/pacman/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index 757244a5..a8ad0059 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -38,6 +38,7 @@
#include "util.h"
#include "list.h"
#include "conf.h"
+#include "log.h"
extern int maxcols;
extern config_t *config;
@@ -195,7 +196,7 @@ int reg_match(char *string, char *pattern)
regex_t reg;
if(regcomp(&reg, pattern, REG_EXTENDED | REG_NOSUB | REG_ICASE) != 0) {
- fprintf(stderr, "error: %s is not a valid regular expression.\n", pattern);
+ ERR(NL, "%s is not a valid regular expression.\n", pattern);
return(-1);
}
result = regexec(&reg, string, 0, 0, 0);