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_install.c') diff --git a/libopkg/opkg_install.c b/libopkg/opkg_install.c index 303877e..44aad00 100644 --- a/libopkg/opkg_install.c +++ b/libopkg/opkg_install.c @@ -1189,7 +1189,7 @@ resolve_conffiles(opkg_conf_t *conf, pkg_t *pkg) int opkg_install_by_name(opkg_conf_t *conf, const char *pkg_name) { - int cmp, err = 0; + int cmp; pkg_t *old, *new; char *old_version, *new_version; @@ -1197,8 +1197,8 @@ opkg_install_by_name(opkg_conf_t *conf, const char *pkg_name) if (old) opkg_message(conf, OPKG_DEBUG2, "Old versions from pkg_hash_fetch %s \n", old->version); - new = pkg_hash_fetch_best_installation_candidate_by_name(conf, pkg_name, &err); - if (new == NULL || err) + new = pkg_hash_fetch_best_installation_candidate_by_name(conf, pkg_name); + if (new == NULL) return -1; opkg_message(conf, OPKG_DEBUG2, "Versions from pkg_hash_fetch in %s ", __FUNCTION__); -- cgit v0.9.1