Commit bf060ff273fddaeff0eb2f05225ec81ffde98710
1 parent
6bc39ad9
Add const on timeval argument on Windows internal API
Showing
1 changed file
with
1 additions
and
1 deletions
src/modbus-rtu.c
| ... | ... | @@ -193,7 +193,7 @@ static void win32_ser_init(struct win32_ser *ws) { |
| 193 | 193 | |
| 194 | 194 | /* FIXME Try to remove length_to_read -> max_len argument, only used by win32 */ |
| 195 | 195 | static int win32_ser_select(struct win32_ser *ws, int max_len, |
| 196 | - struct timeval *tv) { | |
| 196 | + const struct timeval *tv) { | |
| 197 | 197 | COMMTIMEOUTS comm_to; |
| 198 | 198 | unsigned int msec = 0; |
| 199 | 199 | ... | ... |