The following commit has been merged in the master branch:
commit 631338a5e54d5ecd861f26440deef37a891d1f30
Author: Guillem Jover <[email protected]>
Date:   Sun Oct 31 03:40:04 2010 +0100

    dselect: Remove shadowing variable definitions from pkgtop
    
    The variables i and p are always initialized before each different loop
    use, and they are actually used for the same purpose, just in different
    places in the code.

diff --git a/dselect/pkgtop.cc b/dselect/pkgtop.cc
index 826877c..89b70bd 100644
--- a/dselect/pkgtop.cc
+++ b/dselect/pkgtop.cc
@@ -187,8 +187,6 @@ void packagelist::redraw1itemsel(int index, int selected) {
       wmove(listpad, screenline, priority_column - 1);
       waddch(listpad, ' ');
       if (pkg->priority == pkginfo::pri_other) {
-        int i;
-        const char *p;
         for (i=priority_width, p=pkg->otherpriority;
              i > 0 && *p;
              i--, p++)

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to