summaryrefslogtreecommitdiff
path: root/lib/pingpong.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-11-06 17:38:36 +0100
committerDaniel Stenberg <daniel@haxx.se>2011-11-06 17:38:36 +0100
commit06a83e805070b01e8c8ebffb1f6b56e113b1810a (patch)
treef98e981e5faa02e13c1c544a4d701e50d2878486 /lib/pingpong.c
parent2c09d21fdf16818d406db471de6e0db5d40b4ba2 (diff)
downloadcurl-06a83e805070b01e8c8ebffb1f6b56e113b1810a.tar.gz
pingpong: change two comments wrongly referring "FTP"
Just a sign of where the code originally was ripped out from. Now it is generic "pingpong".
Diffstat (limited to 'lib/pingpong.c')
-rw-r--r--lib/pingpong.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/pingpong.c b/lib/pingpong.c
index 84ce88148..c10894654 100644
--- a/lib/pingpong.c
+++ b/lib/pingpong.c
@@ -315,10 +315,9 @@ CURLcode Curl_pp_readresp(curl_socket_t sockfd,
/* we had data in the "cache", copy that instead of doing an actual
* read
*
- * ftp->cache_size is cast to int here. This should be safe,
- * because it would have been populated with something of size
- * int to begin with, even though its datatype may be larger
- * than an int.
+ * pp->cache_size is cast to ssize_t here. This should be safe, because
+ * it would have been populated with something of size int to begin
+ * with, even though its datatype may be larger than an int.
*/
DEBUGASSERT((ptr+pp->cache_size) <= (buf+BUFSIZE+1));
memcpy(ptr, pp->cache, pp->cache_size);
@@ -375,7 +374,7 @@ CURLcode Curl_pp_readresp(curl_socket_t sockfd,
for(i = 0; i < gotbytes; ptr++, i++) {
perline++;
if(*ptr=='\n') {
- /* a newline is CRLF in ftp-talk, so the CR is ignored as
+ /* a newline is CRLF in pp-talk, so the CR is ignored as
the line isn't really terminated until the LF comes */
/* output debug output if that is requested */