]> granicus.if.org Git - curl/commitdiff
ssh: inhibit coverity warning with (void)
authorDaniel Stenberg <daniel@haxx.se>
Tue, 20 Dec 2016 13:46:47 +0000 (14:46 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 20 Dec 2016 13:46:47 +0000 (14:46 +0100)
CID 1397391 (#1 of 1): Unchecked return value (CHECKED_RETURN)

lib/ssh.c

index 9b014a4ffe574b1a97fd9d8c0d037d5821a99e0b..5ed036a1ef75617c1becc35c8a64735ebd161eed 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -2866,8 +2866,8 @@ static CURLcode ssh_block_statemach(struct connectdata *conn,
       if(LIBSSH2_SESSION_BLOCK_OUTBOUND & dir)
         fd_write = sock;
       /* wait for the socket to become ready */
-      Curl_socket_check(fd_read, CURL_SOCKET_BAD, fd_write,
-                        left>1000?1000:left); /* ignore result */
+      (void)Curl_socket_check(fd_read, CURL_SOCKET_BAD, fd_write,
+                              left>1000?1000:left); /* ignore result */
     }
 #endif