Fixed variable to right scope

This commit is contained in:
Pauli Nieminen 2008-06-10 11:46:56 +00:00
parent 866c9ee95a
commit 04d3e3c756

View File

@ -420,8 +420,9 @@ static SOCKET_STATE send_file(buffer* buf)
poll_res = poll(&fd, 1, 600000);
} while(poll_res == -1 && errno == EINTR);
SOCKET_STATE result;
if (poll_res > 0)
SOCKET_STATE result = send_buffer(buf->sock, buffer, 4);
result = send_buffer(buf->sock, buffer, 4);
else
result = SOCKET_ERRORED;