Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/remove.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-08 21:25:52 -0500
committerDan McGee <dan@archlinux.org>2007-10-08 21:25:52 -0500
commit6db0562b8d3cda777650521f1205a541d0e0aa93 (patch)
tree5a85048cde8e8b45b1e20fc947a70730b841c9f5 /lib/libalpm/remove.c
parent087b8df781fb229033e9c01f58cdf80f0ddd29e6 (diff)
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));
}
}
}