From 6db0562b8d3cda777650521f1205a541d0e0aa93 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 8 Oct 2007 21:25:52 -0500 Subject: 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 --- lib/libalpm/remove.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/remove.c') 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)); } } } -- cgit v1.2.3-24-g4f1b