diff options
author | graham.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) |
commit | b2b5908e2c248f7d21bde6cee2c523b24793dfa1 (patch) | |
tree | ce4ef99b5d0f717c78854d1387f9a308130c6109 /libopkg/opkg_install.c | |
parent | 9656d4499de22e10b079c249b70e4dc9ef8e7970 (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_install.c')
-rw-r--r-- | libopkg/opkg_install.c | 6 |
1 files changed, 3 insertions, 3 deletions
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__); |