From: Daniel Stenberg Date: Tue, 24 Jan 2017 07:45:25 +0000 (+0100) Subject: telnet: fix windows compiler warnings X-Git-Tag: curl-7_53_0~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d8a3aa702ae55af702ac36bd1ab734748f417cf5;p=thirdparty%2Fcurl.git telnet: fix windows compiler warnings Thumbs-up-by: Jay Satiro Closes #1225 --- diff --git a/lib/telnet.c b/lib/telnet.c index 8ee7efa4c2..5c14b4ccde 100644 --- a/lib/telnet.c +++ b/lib/telnet.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2016, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2017, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -1416,7 +1416,7 @@ static CURLcode telnet_do(struct connectdata *conn, bool *done) /* Keep on listening and act on events */ while(keepon) { - const size_t buf_size = CURL_BUFSIZE(data->set.buffer_size); + const DWORD buf_size = (DWORD)CURL_BUFSIZE(data->set.buffer_size); waitret = WaitForMultipleObjects(obj_count, objs, FALSE, wait_timeout); switch(waitret) { case WAIT_TIMEOUT: