From: Jo-Philipp Wich Date: Wed, 15 Mar 2017 00:06:32 +0000 (+0100) Subject: libopkg: remove unused variable from opkg_install_package() X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=commitdiff_plain;h=7cbc4665b58496f2007f28bbc6d2c847bf592d04 libopkg: remove unused variable from opkg_install_package() Signed-off-by: Jo-Philipp Wich --- diff --git a/libopkg/opkg.c b/libopkg/opkg.c index 2e5d01e..253080f 100644 --- a/libopkg/opkg.c +++ b/libopkg/opkg.c @@ -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"