[enigma2-plugin-extensions-openwebif] use fixed SRCREV.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-devtools / opkg / opkg / 0005-pkg_depends-remove-unused-variables-to-fix-compiler-.patch
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
5  warnings
6
7 Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
8 ---
9  libopkg/pkg_depends.c |    5 -----
10  1 file changed, 5 deletions(-)
11
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)
17  {
18      int i ;
19      int replaces_count = pkg->replaces_count;
20 -    abstract_pkg_t **replaces;
21  
22      if (pkg->replaces_count==0)    // No replaces, it's surely a conflict
23          return 0;
24  
25 -    replaces = pkg->replaces;
26 -
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;
33      int i, j, k;
34 -    int count;
35      abstract_pkg_t * ab_pkg;
36      pkg_t **pkg_scouts;
37      pkg_t *pkg_scout;
38 @@ -315,7 +311,6 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg)
39      }
40      installed_conflicts = pkg_vec_alloc();
41  
42 -    count = pkg->conflicts_count;
43  
44  
45  
46 -- 
47 1.7.9.5
48