summaryrefslogtreecommitdiff
path: root/src/pacman/conf.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-10-21 10:44:19 -0500
committerDan McGee <dan@archlinux.org>2011-10-21 10:45:18 -0500
commit9e9ecf218344cea86d6b8c6cf7cd246bcfcca98b (patch)
tree88ed783b6008148b670bb17f691aaf9d95f3bacb /src/pacman/conf.c
parent45f86ca1ca712857e6f84288cf818ce5707fc345 (diff)
downloadpacman-9e9ecf218344cea86d6b8c6cf7cd246bcfcca98b.tar.xz
Remove pm_fprintf() in favor of pm_printf()
Now that pm_printf() always prints to stderr, we don't need this second function that was always used with stderr as the first argument. Thus, this patch removes the function and makes the following sed replacement: sed -i -e 's#pm_fprintf(stderr, #pm_printf(#g' src/pacman/*.c Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r--src/pacman/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index fe2ebb3e..a4d115dd 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -45,7 +45,7 @@ config_t *config_new(void)
{
config_t *newconfig = calloc(1, sizeof(config_t));
if(!newconfig) {
- pm_fprintf(stderr, ALPM_LOG_ERROR,
+ pm_printf(ALPM_LOG_ERROR,
_("malloc failure: could not allocate %zd bytes\n"),
sizeof(config_t));
return NULL;