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:
@@ -147,7 +147,7 @@ Socket_setNonBlocking(Socket *sock) {
|
|||||||
return -1;
|
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;
|
int savedErrno = errno;
|
||||||
log_add(log_Error, "Setting non-blocking mode on socket failed: "
|
log_add(log_Error, "Setting non-blocking mode on socket failed: "
|
||||||
"%s.\n", strerror(errno));
|
"%s.\n", strerror(errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user