From bbefdf88fdd9c0a2c36966960b360a5a7e9bf764 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 27 Jan 2010 03:43:34 +0000 Subject: fix compiler warning --- lib/url.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 9f7cd0ac5..26ad8b78c 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2339,7 +2339,7 @@ CURLcode Curl_setopt(struct SessionHandle *data, CURLoption option, * Would this be better if the RTSPREQ_* were just moved into here? */ long curl_rtspreq = va_arg(param, long); - long rtspreq = RTSPREQ_NONE; + Curl_RtspReq rtspreq = RTSPREQ_NONE; switch(curl_rtspreq) { case CURL_RTSPREQ_OPTIONS: rtspreq = RTSPREQ_OPTIONS; @@ -3557,8 +3557,8 @@ static CURLcode parseurlandfillconn(struct SessionHandle *data, * The URL was badly formatted, let's try the browser-style _without_ * protocol specified like 'http://'. */ - if(1 > (rc = sscanf(data->change.url, "%[^\n/]%[^\n]", - conn->host.name, path)) ) { + rc = sscanf(data->change.url, "%[^\n/]%[^\n]", conn->host.name, path); + if(1 > rc) { /* * We couldn't even get this format. * djgpp 2.04 has a sscanf() bug where 'conn->host.name' is -- cgit v1.2.3