]> granicus.if.org Git - curl/commitdiff
http2: Remove incorrect comments
authorJay Satiro <raysatiro@yahoo.com>
Thu, 25 Aug 2016 06:43:19 +0000 (02:43 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 25 Aug 2016 06:43:19 +0000 (02:43 -0400)
.. also remove same from scp

lib/http2.c
lib/ssh.c

index 885208800589a59d7fd3aeec6310bb792ef29949..a14f75e62dbc669d24ed3f9debd69b6542b26f77 100644 (file)
@@ -1268,10 +1268,6 @@ static int h2_session_send(struct Curl_easy *data,
   return nghttp2_session_send(h2);
 }
 
-/*
- * If the read would block (EWOULDBLOCK) we return -1. Otherwise we return
- * a regular CURLcode value.
- */
 static ssize_t http2_recv(struct connectdata *conn, int sockindex,
                           char *mem, size_t len, CURLcode *err)
 {
@@ -1497,7 +1493,6 @@ static ssize_t http2_recv(struct connectdata *conn, int sockindex,
 #define HEADER_OVERFLOW(x) \
   (x.namelen > (uint16_t)-1 || x.valuelen > (uint16_t)-1 - x.namelen)
 
-/* return number of received (decrypted) bytes */
 static ssize_t http2_send(struct connectdata *conn, int sockindex,
                           const void *mem, size_t len, CURLcode *err)
 {
index bf7cfe01b183ea4460c1bb908ab0cf4585ae478f..e361df30185adedd4a39e794fce2f189c959ebba 100644 (file)
--- a/lib/ssh.c
+++ b/lib/ssh.c
@@ -3109,7 +3109,6 @@ static CURLcode scp_done(struct connectdata *conn, CURLcode status,
 
 }
 
-/* return number of received (decrypted) bytes */
 static ssize_t scp_send(struct connectdata *conn, int sockindex,
                         const void *mem, size_t len, CURLcode *err)
 {
@@ -3134,10 +3133,6 @@ static ssize_t scp_send(struct connectdata *conn, int sockindex,
   return nwrite;
 }
 
-/*
- * If the read would block (EWOULDBLOCK) we return -1. Otherwise we return
- * a regular CURLcode value.
- */
 static ssize_t scp_recv(struct connectdata *conn, int sockindex,
                         char *mem, size_t len, CURLcode *err)
 {