Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=f97bf1ac1114edefd8394d9b3e2927deb4922a7f

commit f97bf1ac1114edefd8394d9b3e2927deb4922a7f
Author: Michel Hermier <herm...@frugalware.org>
Date:   Wed Nov 13 17:00:15 2013 +0100

libpacman: Remove some warnings.

diff --git a/lib/libpacman/add.c b/lib/libpacman/add.c
index d061c72..a00b5df 100644
--- a/lib/libpacman/add.c
+++ b/lib/libpacman/add.c
@@ -45,6 +45,7 @@
#include "db/fakedb.h"
#include "hash/md5.h"
#include "hash/sha1.h"
+#include "io/archive.h"
#include "util/list.h"
#include "util/log.h"
#include "util/stringlist.h"
@@ -120,7 +121,7 @@ int _pacman_add_addtarget(pmtrans_t *trans, const char 
*name)
if(_pacman_versioncmp(pkg->version, pkg_new->version) < 0) {
_pacman_log(PM_LOG_WARNING, _("replacing older version %s-%s by %s in target 
list"),
pkg->name, pkg->version, pkg_new->version);
-                               _pacman_ptrswap(&i->data, &pkg_new);
+                               _pacman_ptrswap(&i->data, (void **)&pkg_new);
} else {
_pacman_log(PM_LOG_WARNING, _("newer version %s-%s is in the target list -- 
skipping"),
pkg->name, pkg->version, pkg_new->version);
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to