tzdata: update bbappend for 2013i
[opendreambox.git] / meta-opendreambox / recipes-devtools / opkg / opkg / 0003-pkg_depends-remove-unused-variables-to-fix-compiler-.patch
1 From 581dd878713a542cca4061919c80b46701d800b2 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/19] pkg_depends: remove unused variables to fix compiler
5  warnings
6 To: opkg-devel@googlegroups.com
7 Cc: paul@paulbarker.me.uk
8
9 Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
10 ---
11  libopkg/pkg_depends.c | 5 -----
12  1 file changed, 5 deletions(-)
13
14 diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c
15 index 4664d4e..8291c68 100644
16 --- a/libopkg/pkg_depends.c
17 +++ b/libopkg/pkg_depends.c
18 @@ -350,13 +350,10 @@ is_pkg_a_replaces(pkg_t *pkg_scout,pkg_t *pkg)
19  {
20      int i ;
21      int replaces_count = pkg->replaces_count;
22 -    abstract_pkg_t **replaces;
23  
24      if (pkg->replaces_count==0)    // No replaces, it's surely a conflict
25          return 0;
26  
27 -    replaces = pkg->replaces;
28 -
29      for (i = 0; i < replaces_count; i++) {
30          if (strcmp(pkg_scout->name,pkg->replaces[i]->name)==0) {      // Found
31              opkg_msg(DEBUG2, "Seems I've found a replace %s %s\n",
32 @@ -376,7 +373,6 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg)
33      depend_t ** possible_satisfiers;
34      depend_t * possible_satisfier;
35      int i, j, k;
36 -    int count;
37      abstract_pkg_t * ab_pkg;
38      pkg_t **pkg_scouts;
39      pkg_t *pkg_scout;
40 @@ -396,7 +392,6 @@ pkg_vec_t * pkg_hash_fetch_conflicts(pkg_t * pkg)
41      }
42      installed_conflicts = pkg_vec_alloc();
43  
44 -    count = pkg->conflicts_count;
45  
46  
47  
48 -- 
49 1.9.1
50