summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/remove.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-09 04:25:52 +0200
committerDan McGee <dan@archlinux.org>2007-10-09 04:25:52 +0200
commit6db0562b8d3cda777650521f1205a541d0e0aa93 (patch)
tree5a85048cde8e8b45b1e20fc947a70730b841c9f5 /lib/libalpm/remove.c
parent087b8df781fb229033e9c01f58cdf80f0ddd29e6 (diff)
downloadpacman-6db0562b8d3cda777650521f1205a541d0e0aa93.tar.gz
pacman-6db0562b8d3cda777650521f1205a541d0e0aa93.tar.xz
Add gcc format attribute to _alpm_log, catch a few bugs in the process
This fixed a few of our formatted output strings that were broken before but never being checked. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/remove.c')
-rw-r--r--lib/libalpm/remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index 07fd0235..734c365c 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -242,7 +242,7 @@ static void unlink_file(pmpkg_t *info, alpm_list_t *lp, pmtrans_t *trans)
if(unlink(file) == -1) {
_alpm_log(PM_LOG_ERROR, _("cannot remove file '%s': %s\n"),
- lp->data, strerror(errno));
+ (char *)lp->data, strerror(errno));
}
}
}