From 7cbc4665b58496f2007f28bbc6d2c847bf592d04 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 15 Mar 2017 01:06:32 +0100 Subject: [PATCH] libopkg: remove unused variable from opkg_install_package() Signed-off-by: Jo-Philipp Wich --- libopkg/opkg.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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" -- 2.25.1