mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 20:30:38 +09:00
socket: Fixed signed values which could be seen as an unary operator.
This commit is contained in:
@@ -440,7 +440,7 @@ int ssh_socket_wait_for_data(struct socket *s, ssh_session session, uint32_t len
|
||||
if (ssh_socket_is_open(session->socket)) {
|
||||
r = ssh_socket_unbuffered_read(session->socket, buffer, sizeof(buffer));
|
||||
} else {
|
||||
r =- 1;
|
||||
r = -1;
|
||||
}
|
||||
|
||||
if (r <= 0) {
|
||||
@@ -547,7 +547,7 @@ int ssh_socket_nonblocking_flush(struct socket *s) {
|
||||
buffer_get_rest_len(s->out_buffer));
|
||||
} else {
|
||||
/* write failed */
|
||||
w =- 1;
|
||||
w = -1;
|
||||
}
|
||||
|
||||
if (w < 0) {
|
||||
|
||||
Reference in New Issue
Block a user