diff --git a/lib/telnet.c b/lib/telnet.c index f5381aa74..1d5cdf64a 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -108,7 +108,7 @@ static CURLcode check_wsock2 ( struct SessionHandle *data ); static void telrcv(struct connectdata *, unsigned char *inbuf, /* Data received from socket */ - int count); /* Number of bytes received */ + ssize_t count); /* Number of bytes received */ static void printoption(struct SessionHandle *data, const char *direction, @@ -899,7 +899,7 @@ static void suboption(struct connectdata *conn) static void telrcv(struct connectdata *conn, unsigned char *inbuf, /* Data received from socket */ - int count) /* Number of bytes received */ + ssize_t count) /* Number of bytes received */ { unsigned char c; int in = 0;