From dfa48296997789a3a7d3c95e9b1b01be3a4235a6 Mon Sep 17 00:00:00 2001 From: oetiker Date: Sun, 24 Feb 2008 14:26:46 +0000 Subject: [PATCH] get rid of a few type cast warnings git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1297 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_dump.c | 4 ++-- src/rrd_tool.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rrd_dump.c b/src/rrd_dump.c index baf560c..7a904f3 100644 --- a/src/rrd_dump.c +++ b/src/rrd_dump.c @@ -113,8 +113,8 @@ int rrd_dump_r( #else # error "Need strftime" #endif - fprintf(out_file, "\t %ld \n\n", - rrd.live_head->last_up, somestring); + fprintf(out_file, "\t %lu \n\n", + (unsigned long) rrd.live_head->last_up, somestring); for (i = 0; i < rrd.stat_head->ds_cnt; i++) { fprintf(out_file, "\t\n"); fprintf(out_file, "\t\t %s \n", rrd.ds_def[i].ds_nam); diff --git a/src/rrd_tool.c b/src/rrd_tool.c index 9d65ecd..b91d96f 100644 --- a/src/rrd_tool.c +++ b/src/rrd_tool.c @@ -740,10 +740,10 @@ int HandleInputLine( XML_ENCODING); printf("<%s>\n", ROOT_TAG); printf(" <%s>\n", META_TAG); - printf(" <%s>%lu\n", META_START_TAG, start + step, + printf(" <%s>%lu\n", META_START_TAG, (unsigned long) start + step, META_START_TAG); printf(" <%s>%lu\n", META_STEP_TAG, step, META_STEP_TAG); - printf(" <%s>%lu\n", META_END_TAG, end, META_END_TAG); + printf(" <%s>%lu\n", META_END_TAG, (unsigned long) end, META_END_TAG); printf(" <%s>%lu\n", META_ROWS_TAG, row_cnt, META_ROWS_TAG); printf(" <%s>%lu\n", META_COLS_TAG, col_cnt, -- 2.11.0