diff options
author | tradke <tradke@9697cf00-7f2a-4e1b-af3c-314b8e4b499e> | 2002-07-05 12:38:12 +0000 |
---|---|---|
committer | tradke <tradke@9697cf00-7f2a-4e1b-af3c-314b8e4b499e> | 2002-07-05 12:38:12 +0000 |
commit | c2d9b3683be589e3ef969fd49abe66f42f9afdaa (patch) | |
tree | 44a97b8e2af5a7335b2cb37c12ab8886200942c1 | |
parent | a515c408e528e697fe114cb51cc2a6e93f6a020b (diff) |
Fixed a bug in Socket_SetNonBlocking() where the third argument to ioctl()
should be an 'unsigned int' instead of 'unsigned long'.
This fixes a problem on 64-bit SGIs where a socket couldn't be set into
non-blocking operation.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/Socket/trunk@27 9697cf00-7f2a-4e1b-af3c-314b8e4b499e
-rw-r--r-- | src/Utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.c b/src/Utils.c index ffa4d3a..95110b4 100644 --- a/src/Utils.c +++ b/src/Utils.c @@ -446,7 +446,7 @@ int Socket_TCPBlockingRead(SOCKET s,char *buffer, int buflen) int Socket_SetNonBlocking (SOCKET s) { int retval; - unsigned long int on = 1; + unsigned int on = 1; retval = IOCTL_SOCKET (s, FIONBIO, &on) != SOCKET_ERROR ? 0 : -1; |