summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2009-12-05 01:50:09 +0100
committerDan McGee <dan@archlinux.org>2010-03-15 01:25:48 +0100
commit1aa1d00248ac89fb02e762b96c58559a04679b2e (patch)
tree0326bf37268fa6167f4b17e38b58bda598a82da4 /src/pacman/pacman.c
parentbe2f43191d0d0cdf02d72ac72a013697b0f7e879 (diff)
downloadpacman-1aa1d00248ac89fb02e762b96c58559a04679b2e.tar.gz
pacman-1aa1d00248ac89fb02e762b96c58559a04679b2e.tar.xz
fix a few warnings reported by clang
- remove unused variables - some more sanity checks - safer printf Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index d4385ebc..4559f8c6 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -219,7 +219,7 @@ static void setarch(const char *arch)
static void cleanup(int ret) {
/* free alpm library resources */
if(alpm_release() == -1) {
- pm_printf(PM_LOG_ERROR, alpm_strerrorlast());
+ pm_printf(PM_LOG_ERROR, "%s\n", alpm_strerrorlast());
}
/* free memory */