]> granicus.if.org Git - curl/commitdiff
Use ssize_t instead of 'int' to make the 64 bit sparc compiler happier.
authorDaniel Stenberg <daniel@haxx.se>
Tue, 11 Mar 2003 18:58:21 +0000 (18:58 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 11 Mar 2003 18:58:21 +0000 (18:58 +0000)
Fix by Richard Gorton.

lib/ftp.c
lib/ftp.h
lib/url.c

index 710bee925d65e3a6634c6725693893400c5c1f09..cbac02f5b11358152c942417075378290939cfc6 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -173,7 +173,7 @@ static CURLcode AllowServerConnect(struct SessionHandle *data,
  * response and extract the relevant return code for the invoking function.
  */
 
-CURLcode Curl_GetFTPResponse(int *nreadp, /* return number of bytes read */
+CURLcode Curl_GetFTPResponse(ssize_t *nreadp, /* return number of bytes read */
                              struct connectdata *conn,
                              int *ftpcode) /* return the ftp-code */
 {
@@ -387,7 +387,7 @@ CURLcode Curl_GetFTPResponse(int *nreadp, /* return number of bytes read */
 CURLcode Curl_ftp_connect(struct connectdata *conn)
 {
   /* this is FTP and no proxy */
-  int nread;
+  ssize_t nread;
   struct SessionHandle *data=conn->data;
   char *buf = data->state.buffer; /* this is our buffer */
   struct FTP *ftp;
index 6deba0cc6cd32073c771490b6dc3eb9959e2b9f2..12f3e367c6a032d9cb9154ddcc2af17ad69cebc8 100644 (file)
--- a/lib/ftp.h
+++ b/lib/ftp.h
@@ -29,7 +29,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn);
 CURLcode Curl_ftp_connect(struct connectdata *conn);
 CURLcode Curl_ftp_disconnect(struct connectdata *conn);
 CURLcode Curl_ftpsendf(struct connectdata *, const char *fmt, ...);
-CURLcode Curl_GetFTPResponse(int *nread, struct connectdata *conn,
+CURLcode Curl_GetFTPResponse(ssize_t *nread, struct connectdata *conn,
                              int *ftpcode);
 CURLcode Curl_ftp_nextconnect(struct connectdata *conn);
 #endif
index 192829ce9424a770e5a37562e98c6a682cca1f4e..15391563ad927721270f3dd0b16211d618cc4b89 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1427,8 +1427,8 @@ static int handleSock5Proxy(
     int sock)
 {
   unsigned char socksreq[600]; /* room for large user/pw (255 max each) */
-  int actualread;
-  int written;
+  ssize_t actualread;
+  ssize_t written;
   CURLcode result;
 
   Curl_nonblock(sock, FALSE);