summaryrefslogtreecommitdiff
path: root/lib/splay.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-05-08 05:45:01 +0000
committerYang Tse <yangsita@gmail.com>2008-05-08 05:45:01 +0000
commitd4e9b141dbada253455fd0a13ce27bfb81969e4d (patch)
treec9181a61f854fdc8f626ae573272b12272119972 /lib/splay.c
parentec0665a931e8209ef4b832397a5704e7266dd2ae (diff)
downloadcurl-d4e9b141dbada253455fd0a13ce27bfb81969e4d.tar.gz
fix compiler warning: format '%ld' expects type 'long int'
Diffstat (limited to 'lib/splay.c')
-rw-r--r--lib/splay.c4
1 files changed, 2 insertions, 2 deletions
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
}