From: Daniel Stenberg Date: Fri, 2 Jul 2004 12:29:15 +0000 (+0000) Subject: added typecasts to please compilers X-Git-Tag: curl-7_12_1~147 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c211a7c68554ae1aea5697cd3911e6aad56bd8c5;p=thirdparty%2Fcurl.git added typecasts to please compilers --- diff --git a/src/main.c b/src/main.c index 256a35e94d..775909de68 100644 --- a/src/main.c +++ b/src/main.c @@ -2245,7 +2245,7 @@ static void go_sleep(long ms) { #ifdef HAVE_POLL_FINE /* portable subsecond "sleep" */ - poll((void *)0, 0, ms); + poll((void *)0, 0, (int)ms); #else /* systems without poll() need other solutions */ @@ -3494,8 +3494,8 @@ operate(struct Configurable *config, int argc, char *argv[]) curl_easy_getinfo(curl, CURLINFO_FILETIME, &filetime); if(filetime >= 0) { struct utimbuf times; - times.actime = filetime; - times.modtime = filetime; + times.actime = (time_t)filetime; + times.modtime = (time_t)filetime; utime(outs.filename, ×); /* set the time we got */ } }