Fixed variable to right scope

This commit is contained in:
Pauli Nieminen 2008-06-10 11:44:30 +00:00
parent e51f4e8bc1
commit 783c166b75

View file

@ -406,8 +406,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;