libftdi-git Archives

Subject: A library to talk to FTDI chips branch, master, updated. v1.1-15-ga1b2db2

From: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
To: libftdi-git@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 26 Sep 2014 17:14:04 +0200 (CEST)
The branch, master has been updated
       via  a1b2db22abd6fbc134238952c84122ea8b11b856 (commit)
      from  34b79ac71e43a07e5bd929592cba212c9f780672 (commit)


- Log -----------------------------------------------------------------
commit a1b2db22abd6fbc134238952c84122ea8b11b856
Author: xantares <xantares09@xxxxxxxxxxx>
Date:   Sun Sep 14 12:31:51 2014 +0200

    Fix declaration shadow in ftdi.c

-----------------------------------------------------------------------

Summary of changes:
 src/ftdi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ftdi.c b/src/ftdi.c
index 08130c2..ad9e20e 100644
--- a/src/ftdi.c
+++ b/src/ftdi.c
@@ -3532,9 +3532,9 @@ int ftdi_eeprom_decode(struct ftdi_context *ftdi, int 
verbose)
                     {INVERT_RI, "RI"},
                     {0, NULL},
                 };
-                int i, n;
+                int n = 0;
                 printf("Inversion on ");
-                for (i=0, n=0; invbitlist[i].mask;i++) {
+                for (i=0; invbitlist[i].mask;i++) {
                     if(eeprom->rs232_inversion & invbitlist[i].mask) {
                         if (n++) printf (",");
                         printf (" %s", invbitlist[i].name);


hooks/post-receive
-- 
A library to talk to FTDI chips

--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread
  • A library to talk to FTDI chips branch, master, updated. v1.1-15-ga1b2db2, libftdi-git <=