Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=c33528fd13fb8f852ab60fd8f84c7b39ae03cc4d
commit c33528fd13fb8f852ab60fd8f84c7b39ae03cc4d Author: Michel Hermier <[email protected]> Date: Wed May 14 14:17:41 2014 +0200 libpacman: _pacman_db_remove_pkgfromcache only caller provides package from cache, so no need to use _pacman_pkg_cmp. diff --git a/lib/libpacman/cache.cpp b/lib/libpacman/cache.cpp index c106a49..ae460e6 100644 --- a/lib/libpacman/cache.cpp +++ b/lib/libpacman/cache.cpp @@ -133,7 +133,7 @@ int _pacman_db_remove_pkgfromcache(Database *db, Package *pkg) return(-1); } - db->pkgcache = _pacman_list_remove(db->pkgcache, pkg, _pacman_pkg_cmp, (void **)&data); + db->pkgcache = _pacman_list_remove(db->pkgcache, pkg, f_ptrcmp, (void **)&data); if(data == NULL) { /* package not found */ return(-1); _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
