From: Yang Tse Date: Thu, 8 May 2008 05:45:01 +0000 (+0000) Subject: fix compiler warning: format '%ld' expects type 'long int' X-Git-Tag: cares-1_5_2~87 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4e9b141dbada253455fd0a13ce27bfb81969e4d;p=curl fix compiler warning: format '%ld' expects type 'long int' --- diff --git a/lib/splay.c b/lib/splay.c index 04aae1f0b..c64ccdaea 100644 --- a/lib/splay.c +++ b/lib/splay.c @@ -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 }