Fix warning on FreeBSD.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2581 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2006-12-07 23:23:06 +00:00
parent 44279b183f
commit 61c98f576e
@@ -45,7 +45,7 @@ NDIndex_uninit(void) {
static inline int static inline int
NDIndex_registerNDWithSocket(Socket *sock, NetDescriptor *nd) { NDIndex_registerNDWithSocket(Socket *sock, NetDescriptor *nd) {
if (sock->fd >= FD_SETSIZE) { if ((unsigned int) sock->fd >= FD_SETSIZE) {
errno = EMFILE; errno = EMFILE;
return -1; return -1;
} }