$NetBSD: patch-aw,v 1.1 2004/02/07 17:44:10 seb Exp $ --- src/rrd_tool.c.orig Fri Oct 11 18:39:48 2002 +++ src/rrd_tool.c @@ -325,7 +325,7 @@ int HandleInputLine(int argc, char **arg else if (strcmp("resize", argv[1]) == 0) rrd_resize(argc-1, &argv[1]); else if (strcmp("last", argv[1]) == 0) - printf("%ld\n",rrd_last(argc-1, &argv[1])); + printf("%ld\n",(long)rrd_last(argc-1, &argv[1])); else if (strcmp("update", argv[1]) == 0) rrd_update(argc-1, &argv[1]); else if (strcmp("fetch", argv[1]) == 0) { @@ -363,9 +363,9 @@ int HandleInputLine(int argc, char **arg printf("\n\n", XML_ENCODING); printf("<%s>\n", ROOT_TAG); printf(" <%s>\n", META_TAG); - printf(" <%s>%lu\n", META_START_TAG, start, META_START_TAG); + printf(" <%s>%lu\n", META_START_TAG, (unsigned long)start, 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, META_COLS_TAG); printf(" <%s>\n", LEGEND_TAG); @@ -381,7 +381,7 @@ int HandleInputLine(int argc, char **arg printf(" <%s>\n", DATA_TAG); for (i = start; i <= end; i += step) { printf (" <%s>", DATA_ROW_TAG); - printf ("<%s>%lu", COL_TIME_TAG, i, COL_TIME_TAG); + printf ("<%s>%lu", COL_TIME_TAG, (unsigned long)i, COL_TIME_TAG); for (j = 0; j < col_cnt; j++) { rrd_value_t newval = DNAN; newval = *(ptr++);