1 From 4a5bc6cbce81497442f79ded5c78389024df0e60 Mon Sep 17 00:00:00 2001
2 From: Andreas Oberritter <obi@opendreambox.org>
3 Date: Thu, 17 May 2012 01:14:23 +0200
4 Subject: [PATCH 05/10] pkg_depends: remove unused variables to fix compiler
7 Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
9 libopkg/pkg_depends.c | 5 -----
10 1 file changed, 5 deletions(-)
12 diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c
13 index a61e80e..68a81f9 100644
14 --- a/libopkg/pkg_depends.c
15 +++ b/libopkg/pkg_depends.c
16 @@ -269,13 +269,10 @@ is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg)
19 int replaces_count = pkg->replaces_count;
20 - abstract_pkg_t **replaces;
22 if (pkg->replaces_count==0) // No replaces, it's surely a conflict
25 - replaces = pkg->replaces;
27 for (i = 0; i < replaces_count; i++) {
28 if (strcmp(pkg_scout->name,pkg->replaces[i]->name)==0) { // Found
29 opkg_msg(DEBUG2, "Seems I've found a replace %s %s\n",
30 @@ -295,7 +292,6 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg)
31 depend_t ** possible_satisfiers;
32 depend_t * possible_satisfier;
35 abstract_pkg_t * ab_pkg;
38 @@ -315,7 +311,6 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg)
40 installed_conflicts = pkg_vec_alloc();
42 - count = pkg->conflicts_count;