Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=782f65551b316fb6357f7741a5dcf4d886c8b425
commit 782f65551b316fb6357f7741a5dcf4d886c8b425 Author: Michel Hermier <[email protected]> Date: Mon Apr 8 09:00:25 2013 +0200 libpacman: Avoid a wrapper function which can be simply replaced by a function definition cast. diff --git a/lib/libpacman/remove.c b/lib/libpacman/remove.c index 75e8f09..d44d4f6 100644 --- a/lib/libpacman/remove.c +++ b/lib/libpacman/remove.c @@ -60,13 +60,6 @@ #include "pacman.h" #include "packages_transaction.h" -/* Helper function for comparing strings - */ -static int str_cmp(const void *s1, const void *s2) -{ - return(strcmp(s1, s2)); -} - int _pacman_remove_commit(pmtrans_t *trans, pmlist_t **data) { pmpkg_t *info; @@ -244,7 +237,7 @@ int _pacman_remove_commit(pmtrans_t *trans, pmlist_t **data) } } /* splice out this entry from requiredby */ - depinfo->requiredby = _pacman_list_remove(_pacman_pkg_getinfo(depinfo, PM_PKG_REQUIREDBY), info->name, str_cmp, (void **)&data); + depinfo->requiredby = _pacman_list_remove(_pacman_pkg_getinfo(depinfo, PM_PKG_REQUIREDBY), info->name, strcmp, (void **)&data); FREE(data); _pacman_log(PM_LOG_DEBUG, _("updating 'requiredby' field for package '%s'"), depinfo->name); if(_pacman_db_write(db, depinfo, INFRQ_DEPENDS)) { _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
