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:
@@ -45,7 +45,7 @@ NDIndex_uninit(void) {
|
||||
|
||||
static inline int
|
||||
NDIndex_registerNDWithSocket(Socket *sock, NetDescriptor *nd) {
|
||||
if (sock->fd >= FD_SETSIZE) {
|
||||
if ((unsigned int) sock->fd >= FD_SETSIZE) {
|
||||
errno = EMFILE;
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user