The following commit has been merged in the master branch:
commit 078c24defe2304d7f7a8012c2960b3f06ad0c3b0
Author: Guillem Jover <[email protected]>
Date:   Mon Feb 8 14:48:49 2010 +0100

    dselect: Do not self shadow bind member

diff --git a/dselect/bindings.cc b/dselect/bindings.cc
index b71f37d..9e3f137 100644
--- a/dselect/bindings.cc
+++ b/dselect/bindings.cc
@@ -51,18 +51,18 @@ int keybindings::bind(int key, const char *action) {
   while (desc->action && strcmp(desc->action, action))
    desc++;
 
-  binding *bind = bindings;
-  while (bind && bind->key != key)
-    bind = bind->next;
+  binding *b = bindings;
+  while (b && b->key != key)
+    b = b->next;
   
-  if (!bind) {
-    bind= new binding;
-    bind->key= key;
-    bind->next= bindings;
-    bindings= bind;
+  if (!b) {
+    b = new binding;
+    b->key = key;
+    b->next = bindings;
+    bindings = b;
   }
-  bind->interp= interp;
-  bind->desc= desc ? desc->desc : 0;
+  b->interp = interp;
+  b->desc = desc ? desc->desc : 0;
   return 1;
 }
 

-- 
dpkg's main repository


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

Reply via email to