X-Git-Url: http://developer.intra2net.com/git/?p=libftdi;a=blobdiff_plain;f=src%2Fftdi.h;h=bb66c53227bea1d6b1c773cfa1f69a76dc19eb3e;hp=fd9a8a968c3c4257498a4488e3125c68ba7414b3;hb=c45d26308211c383903cb06f15ba7575d807fe06;hpb=223e5aae4f0dcf228d758ae60f02398e3d1e95da diff --git a/src/ftdi.h b/src/ftdi.h index fd9a8a9..bb66c53 100644 --- a/src/ftdi.h +++ b/src/ftdi.h @@ -267,7 +267,7 @@ struct ftdi_context struct ftdi_eeprom *eeprom; /** String representation of last error */ - char *error_str; + const char *error_str; /** Defines behavior in case a kernel module is already attached to the device */ enum ftdi_module_detach_mode module_detach_mode; @@ -570,7 +570,7 @@ extern "C" int ftdi_read_eeprom_location (struct ftdi_context *ftdi, int eeprom_addr, unsigned short *eeprom_val); int ftdi_write_eeprom_location(struct ftdi_context *ftdi, int eeprom_addr, unsigned short eeprom_val); - char *ftdi_get_error_string(struct ftdi_context *ftdi); + const char *ftdi_get_error_string(struct ftdi_context *ftdi); #ifdef __cplusplus }