From b2b5908e2c248f7d21bde6cee2c523b24793dfa1 Mon Sep 17 00:00:00 2001 From: graham.gower Date: Fri, 27 Nov 2009 00:32:52 -0500 Subject: Remove unused parameter from pkg_hash_fetch_best_installation_candidate(). git-svn-id: http://opkg.googlecode.com/svn/trunk@397 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/opkg.c') diff --git a/libopkg/opkg.c b/libopkg/opkg.c index 50f8752..51989f7 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -411,7 +411,7 @@ opkg_install_package (opkg_t *opkg, const char *package_name, opkg_progress_call return OPKG_PACKAGE_ALREADY_INSTALLED; } - new = pkg_hash_fetch_best_installation_candidate_by_name(opkg->conf, package_name, NULL); + new = pkg_hash_fetch_best_installation_candidate_by_name(opkg->conf, package_name); if (!new) { /* XXX: Error: Could not find package to install */ @@ -924,7 +924,9 @@ opkg_list_upgradable_packages (opkg_t *opkg, opkg_package_callback_t callback, v head = prepare_upgrade_list(opkg->conf); for (node=active_list_next(head, head); node; active_list_next(head,node)) { old = list_entry(node, pkg_t, list); - new = pkg_hash_fetch_best_installation_candidate_by_name(opkg->conf, old->name, NULL); + new = pkg_hash_fetch_best_installation_candidate_by_name(opkg->conf, old->name); + if (new == NULL) + continue; package = pkg_t_to_opkg_package_t (new); callback (opkg, package, user_data); opkg_package_free (package); -- cgit v0.9.1