From: Yang Tse Date: Fri, 11 Jan 2008 17:35:10 +0000 (+0000) Subject: fix compiler warning X-Git-Tag: curl-7_18_0~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3564aec388ee0c0177849389bb136461cc95ee62;p=thirdparty%2Fcurl.git fix compiler warning --- diff --git a/lib/ftp.c b/lib/ftp.c index af0fc2f002..931aba479b 100644 --- a/lib/ftp.c +++ b/lib/ftp.c @@ -403,7 +403,7 @@ static CURLcode ftp_readresp(curl_socket_t sockfd, int *ftpcode, /* return the ftp-code if done */ size_t *size) /* size of the response */ { - int perline; /* count bytes per line */ + ssize_t perline; /* count bytes per line */ bool keepon=TRUE; ssize_t gotbytes; char *ptr; @@ -418,8 +418,9 @@ static CURLcode ftp_readresp(curl_socket_t sockfd, ptr=buf + ftpc->nread_resp; - perline= (int)(ptr-ftpc->linestart_resp); /* number of bytes in the current - line, so far */ + /* number of bytes in the current line, so far */ + perline = (ssize_t)(ptr-ftpc->linestart_resp); + keepon=TRUE; while((ftpc->nread_respreq.headerbytecount += gotbytes;