summaryrefslogtreecommitdiffstats
path: root/libopkg/opkg.c
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-27 00:32:52 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-27 00:32:52 (EST)
commitb2b5908e2c248f7d21bde6cee2c523b24793dfa1 (patch)
treece4ef99b5d0f717c78854d1387f9a308130c6109 /libopkg/opkg.c
parent9656d4499de22e10b079c249b70e4dc9ef8e7970 (diff)
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
Diffstat (limited to 'libopkg/opkg.c')
-rw-r--r--libopkg/opkg.c6
1 files changed, 4 insertions, 2 deletions
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);