]> granicus.if.org Git - curl/commitdiff
added typecasts to please compilers
authorDaniel Stenberg <daniel@haxx.se>
Fri, 2 Jul 2004 12:29:15 +0000 (12:29 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 2 Jul 2004 12:29:15 +0000 (12:29 +0000)
src/main.c

index 256a35e94d84102cf28c1ffaeceac4ccca6fe625..775909de687c4f2b32afdf190b4e50c5b9b5fa96 100644 (file)
@@ -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, &times); /* set the time we got */
           }
         }