Citeren Frederic BOHE <[email protected]>:

-       res = w32_serial_read(fd,buf,buflen,timeout);
+       res = w32_serial_read((serial_handler_t *)fd,buf,buflen,timeout);

Rather than casting away the const (which may not be possible with certain strict compiler flags), it is better to modify the prototype and definition of this function to take a 'const serial_handler_t *fd' instead.

Best regards, Arjen
--
Please keep list traffic on the list (off-list replies will be rejected)


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to