Remove unused parameter from pkg_hash_fetch_best_installation_candidate().
[oweals/opkg-lede.git] / libopkg / opkg_upgrade.c
index 8df37d062d8764f7f4b65a21f7e16f274be90e05..f0ae8754391ff68cf1a19413e5090e3f0ce6f543 100644 (file)
@@ -34,7 +34,7 @@ opkg_upgrade_pkg(opkg_conf_t *conf, pkg_t *old)
           return 0;
      }
 
-     new = pkg_hash_fetch_best_installation_candidate_by_name(conf, old->name, NULL);
+     new = pkg_hash_fetch_best_installation_candidate_by_name(conf, old->name);
      if (new == NULL) {
           old_version = pkg_version_str_alloc(old);
           opkg_message(conf, OPKG_NOTICE,
@@ -116,7 +116,7 @@ prepare_upgrade_list(opkg_conf_t *conf)
         int cmp;
 
         old = list_entry(node, pkg_t, list);
-        new = pkg_hash_fetch_best_installation_candidate_by_name(conf, old->name, NULL);
+        new = pkg_hash_fetch_best_installation_candidate_by_name(conf, old->name);
 
         if (new == NULL)
             continue;