Browse Source

Add const on timeval argument on Windows internal API

Stéphane Raimbault 11 years ago
parent
commit
bf060ff273
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modbus-rtu.c

+ 1 - 1
src/modbus-rtu.c

@@ -193,7 +193,7 @@ static void win32_ser_init(struct win32_ser *ws) {
 
 
 /* FIXME Try to remove length_to_read -> max_len argument, only used by win32 */
 /* FIXME Try to remove length_to_read -> max_len argument, only used by win32 */
 static int win32_ser_select(struct win32_ser *ws, int max_len,
 static int win32_ser_select(struct win32_ser *ws, int max_len,
-                            struct timeval *tv) {
+                            const struct timeval *tv) {
     COMMTIMEOUTS comm_to;
     COMMTIMEOUTS comm_to;
     unsigned int msec = 0;
     unsigned int msec = 0;