libopkg: remove unused variable from opkg_install_package()
authorJo-Philipp Wich <jo@mein.io>
Wed, 15 Mar 2017 00:06:32 +0000 (01:06 +0100)
committerJo-Philipp Wich <jo@mein.io>
Wed, 15 Mar 2017 00:42:49 +0000 (01:42 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
libopkg/opkg.c

index 2e5d01e..253080f 100644 (file)
@@ -238,7 +238,7 @@ opkg_install_package(const char *package_name,
        opkg_progress_data_t pdata;
        pkg_t *old, *new;
        pkg_vec_t *deps, *all;
-       int i, ndepends;
+       int i;
        char **unresolved = NULL;
        const char *filename;
 
@@ -271,8 +271,7 @@ opkg_install_package(const char *package_name,
        /* find dependancies and download them */
        deps = pkg_vec_alloc();
        /* this function does not return the original package, so we insert it later */
-       ndepends = pkg_hash_fetch_unsatisfied_dependencies(new, deps,
-                                                          &unresolved);
+       pkg_hash_fetch_unsatisfied_dependencies(new, deps, &unresolved);
        if (unresolved) {
                char **tmp = unresolved;
                opkg_msg(ERROR, "Couldn't satisfy the following dependencies"