[Nut-upsdev] [nut-commits] svn commit r2854 - branches/windows_port/common
Arjen de Korte
nut+devel at de-korte.org
Wed Jan 26 15:57:27 UTC 2011
Citeren Frederic BOHE <fbohe-guest op alioth.debian.org>:
> - 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)
More information about the Nut-upsdev
mailing list