Fix build on gcc 4.6 :/

Closes #2479
This commit is contained in:
Machiavelli
2011-08-03 12:49:29 +02:00
parent 7e53a73059
commit 98bdbdd76f

View File

@@ -277,8 +277,9 @@ int RASocket::subnegotiate()
const size_t recv_size = message_block.space();
// Wait a maximum of 1000ms for negotiation packet - not all telnet clients may send it
ACE_Time_Value waitTime = ACE_Time_Value(1);
const ssize_t n = peer().recv(message_block.wr_ptr(),
recv_size, &ACE_Time_Value(1));
recv_size, &waitTime);
if (n <= 0)
return int(n);