X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=ftdi%2Fftdi.c;h=bd4524800f265e0bb6bb69bfc7b3bf74643978b0;hp=afd91f9f0dd384c3171cc7fd8f66f067ef1e3b92;hb=be5d7eec32353ad4e86ec996d7c25a1063e46fcb;hpb=8ed611210cf9b99329aa0ef664a82523768594dd diff --git a/ftdi/ftdi.c b/ftdi/ftdi.c index afd91f9..bd45248 100644 --- a/ftdi/ftdi.c +++ b/ftdi/ftdi.c @@ -189,7 +189,7 @@ int ftdi_set_baudrate(struct ftdi_context *ftdi, int baudrate) { } -int ftdi_write_data(struct ftdi_context *ftdi, char *buf, int size) { +int ftdi_write_data(struct ftdi_context *ftdi, unsigned char *buf, int size) { int ret; int offset = 0; while (offset < size) { @@ -209,7 +209,7 @@ int ftdi_write_data(struct ftdi_context *ftdi, char *buf, int size) { } -int ftdi_read_data(struct ftdi_context *ftdi, char *buf, int size) { +int ftdi_read_data(struct ftdi_context *ftdi, unsigned char *buf, int size) { /* unsigned char buf[64]; int read_bytes; @@ -468,7 +468,7 @@ int ftdi_eeprom_build(struct ftdi_eeprom *eeprom, unsigned char *output) { } -int ftdi_read_eeprom(struct ftdi_context *ftdi, char *eeprom) { +int ftdi_read_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom) { int i; for (i = 0; i < 64; i++) { @@ -482,7 +482,7 @@ int ftdi_read_eeprom(struct ftdi_context *ftdi, char *eeprom) { } -int ftdi_write_eeprom(struct ftdi_context *ftdi, char *eeprom) { +int ftdi_write_eeprom(struct ftdi_context *ftdi, unsigned char *eeprom) { unsigned short usb_val; int i;