From: Daniel Stenberg Date: Mon, 19 Feb 2007 11:47:04 +0000 (+0000) Subject: fixed code to compile and removed one warning X-Git-Tag: curl-7_16_2~279 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec1b3513176b6bac4706de2dc6468dcff3a2e63f;p=thirdparty%2Fcurl.git fixed code to compile and removed one warning --- diff --git a/lib/gtls.c b/lib/gtls.c index e4d43d6f81..daf69aafe9 100644 --- a/lib/gtls.c +++ b/lib/gtls.c @@ -148,7 +148,7 @@ static CURLcode handshake(struct connectdata *conn, if(data->set.timeout) { /* get the strictest timeout of the ones converted to milliseconds */ - if(data->set.timeout) < timeout_ms) + if(data->set.timeout < timeout_ms) timeout_ms = data->set.timeout; } @@ -526,7 +526,6 @@ int Curl_gtls_shutdown(struct connectdata *conn, int sockindex) int retval = 0; struct SessionHandle *data = conn->data; int done = 0; - ssize_t nread; char buf[120]; /* This has only been tested on the proftpd server, and the mod_tls code