]> granicus.if.org Git - curl/commitdiff
fix compiler warning: format '%ld' expects type 'long int'
authorYang Tse <yangsita@gmail.com>
Thu, 8 May 2008 05:45:01 +0000 (05:45 +0000)
committerYang Tse <yangsita@gmail.com>
Thu, 8 May 2008 05:45:01 +0000 (05:45 +0000)
lib/splay.c

index 04aae1f0b5ca6397022b2a65ea02ea310a00ceaf..c64ccdaea11329e71be107e3b757e7c39b896649 100644 (file)
@@ -349,9 +349,9 @@ void Curl_splayprint(struct Curl_tree * t, int d, char output)
 
   if(output) {
 #ifdef TEST_SPLAY
-    printf("%ld[%d]", t->key.tv_usec, i);
+    printf("%ld[%d]", (long)t->key.tv_usec, i);
 #else
-    printf("%ld.%ld[%d]", t->key.tv_sec, t->key.tv_usec, i);
+    printf("%ld.%ld[%d]", (long)t->key.tv_sec, (long)t->key.tv_usec, i);
 #endif
   }