tool/CommandSlaves.cpp
branchstable-1.4
changeset 1634 ae4c73f4c56d
parent 1160 f02ff486b313
child 1222 7348d6abb6cb
--- a/tool/CommandSlaves.cpp	Wed Aug 27 15:52:24 2008 +0000
+++ b/tool/CommandSlaves.cpp	Wed Sep 24 08:48:23 2008 +0000
@@ -189,8 +189,6 @@
         )
 {
     SlaveList::const_iterator si;
-    list<string> protoList;
-    list<string>::const_iterator protoIter;
 
     for (si = slaves.begin(); si != slaves.end(); si++) {
         cout << "=== Slave " << dec << si->position << " ===" << endl;
@@ -213,6 +211,9 @@
             << setw(8) << si->serial_number << endl;
 
         if (si->mailbox_protocols) {
+            list<string> protoList;
+            list<string>::const_iterator protoIter;
+
             cout << "Mailboxes:" << endl
                 << "  RX: 0x"
                 << hex << setw(4) << si->rx_mailbox_offset << "/"