Third argument to fcntl with F_SETFL should be an int anyhow.

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2602 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2006-12-15 00:31:58 +00:00
parent fcd4d7ff78
commit e922d36f77
@@ -147,7 +147,7 @@ Socket_setNonBlocking(Socket *sock) {
return -1;
}
if (fcntl(sock->fd, F_SETFL, (long) (flags | O_NONBLOCK)) == -1) {
if (fcntl(sock->fd, F_SETFL, flags | O_NONBLOCK) == -1) {
int savedErrno = errno;
log_add(log_Error, "Setting non-blocking mode on socket failed: "
"%s.\n", strerror(errno));