From: Michael G. <mg...@te...> - 2004-11-12 10:13:41
|
Hi list ! I have come across an untidyness in the definition of FD_SET as can be found in winsock.h and winsock2.h. In the macro FD_SET is a comparison between the member u_int fd_count of the structure fd_set and the constant FD_SETSIZE which is signed. This results in an warning "comparision between signed unsigned". I therefor propose to either - change the definition of FD_SETSIZE from '64' to '64u', or - add a cast (u_int) to the comparison in FD_SET The later is local to the macro and should have no impact on any existing program while the former might have effects on other programs which use FD_SETSIZE. While I'd prefer the former change, the later probably is the more conservative solution and thus to be preferred. Such change would have to be applied to both winsock.h and winsock2.h. Best, Michael -- Vote against SPAM - see http://www.politik-digital.de/spam/ Michael Gerdau email: mg...@te... GPG-keys available on request or at public keyserver |