devnodes-minimal: new recipe to create /dev/console and /dev/null
[opendreambox.git] / meta-opendreambox / recipes-devtools / opkg / opkg / 0003-pkg_depends-remove-unused-variables-to-fix-compiler-.patch
1 From f5702f766380753a01f39fcbfdcf55d870065ff3 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 03/17] 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 4664d4e..8291c68 100644
14 --- a/libopkg/pkg_depends.c
15 +++ b/libopkg/pkg_depends.c
16 @@ -350,13 +350,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 @@ -376,7 +373,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 @@ -396,7 +392,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.8.1.2
48