]> granicus.if.org Git - curl/commitdiff
10-at-a-time: typecast the argument passed to sleep()
authorDaniel Stenberg <daniel@haxx.se>
Wed, 17 Feb 2016 14:01:21 +0000 (15:01 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 17 Feb 2016 14:01:21 +0000 (15:01 +0100)
docs/examples/10-at-a-time.c

index 75f9d5c5b770d751ec1b9a0b0c2d65a307ae68d9..aa1862ec560492a305fa1eb124146902ebbf6081 100644 (file)
@@ -155,7 +155,7 @@ int main(void)
 #ifdef WIN32
         Sleep(L);
 #else
-        sleep(L / 1000);
+        sleep((unsigned int)L / 1000);
 #endif
       }
       else {