Remove wrong casts
authorUwe Bonnes <bon@elektron.ikp.physik.tu-darmstadt.de>
Sat, 26 Jun 2010 11:44:34 +0000 (13:44 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 28 Jun 2010 16:44:29 +0000 (18:44 +0200)
src/main.c

index fde53e8..03c9eb5 100644 (file)
@@ -158,7 +158,7 @@ int main(int argc, char *argv[])
 
     if (_read > 0)
     {
-        printf("FTDI read eeprom: %d\n", ftdi_read_eeprom(&ftdi, (char *)eeprom_buf));
+        printf("FTDI read eeprom: %d\n", ftdi_read_eeprom(&ftdi, eeprom_buf));
 
         ftdi_eeprom_decode(&eeprom, eeprom_buf, ftdi.eeprom_size);
         /* Debug output */
@@ -222,7 +222,7 @@ int main(int argc, char *argv[])
                 fclose(fp);
             }
         }
-        printf ("FTDI write eeprom: %d\n", ftdi_write_eeprom(&ftdi, (char *)eeprom_buf));
+        printf ("FTDI write eeprom: %d\n", ftdi_write_eeprom(&ftdi, eeprom_buf));
     }
 
     // Write to file?