summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c13aa95)
raw | patch | inline | side by side (parent: c13aa95)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 24 Feb 2008 14:26:46 +0000 (14:26 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 24 Feb 2008 14:26:46 +0000 (14:26 +0000) |
program/src/rrd_dump.c | patch | blob | history | |
program/src/rrd_tool.c | patch | blob | history |
diff --git a/program/src/rrd_dump.c b/program/src/rrd_dump.c
index baf560c721342854342ddc724fe096e66895daed..7a904f3401907604820767af9cb63aa4f1256532 100644 (file)
--- a/program/src/rrd_dump.c
+++ b/program/src/rrd_dump.c
#else
# error "Need strftime"
#endif
- fprintf(out_file, "\t<lastupdate> %ld </lastupdate> <!-- %s -->\n\n",
- rrd.live_head->last_up, somestring);
+ fprintf(out_file, "\t<lastupdate> %lu </lastupdate> <!-- %s -->\n\n",
+ (unsigned long) rrd.live_head->last_up, somestring);
for (i = 0; i < rrd.stat_head->ds_cnt; i++) {
fprintf(out_file, "\t<ds>\n");
fprintf(out_file, "\t\t<name> %s </name>\n", rrd.ds_def[i].ds_nam);
diff --git a/program/src/rrd_tool.c b/program/src/rrd_tool.c
index 9d65ecd6bea13660fdefd2a3d60ff713b093c2bc..b91d96f54116a17f2b5e9ef5048f4be5e746970b 100644 (file)
--- a/program/src/rrd_tool.c
+++ b/program/src/rrd_tool.c
XML_ENCODING);
printf("<%s>\n", ROOT_TAG);
printf(" <%s>\n", META_TAG);
- printf(" <%s>%lu</%s>\n", META_START_TAG, start + step,
+ printf(" <%s>%lu</%s>\n", META_START_TAG, (unsigned long) start + step,
META_START_TAG);
printf(" <%s>%lu</%s>\n", META_STEP_TAG, step, META_STEP_TAG);
- printf(" <%s>%lu</%s>\n", META_END_TAG, end, META_END_TAG);
+ printf(" <%s>%lu</%s>\n", META_END_TAG, (unsigned long) end, META_END_TAG);
printf(" <%s>%lu</%s>\n", META_ROWS_TAG, row_cnt,
META_ROWS_TAG);
printf(" <%s>%lu</%s>\n", META_COLS_TAG, col_cnt,