From: Tobias Oetiker Date: Wed, 1 Aug 2007 15:28:03 +0000 (+0000) Subject: fix for 64bit portability problem ... unsigned long is not int X-Git-Tag: 1.3rc2~110 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c0c255d8ae6d89f92483f3d8bbc2daa410b9db00;p=thirdparty%2Frrdtool-1.x.git fix for 64bit portability problem ... unsigned long is not int git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1177 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_xport.c b/src/rrd_xport.c index a063c877..52e79d45 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -177,7 +177,7 @@ int rrd_xport_fn( unsigned long nof_xports = 0; unsigned long xport_counter = 0; - unsigned long *ref_list; + int *ref_list; rrd_value_t **srcptr_list; char **legend_list; int ii = 0; @@ -204,7 +204,6 @@ int rrd_xport_fn( break; } } - if (nof_xports == 0) { rrd_set_error("no XPORT found, nothing to do"); return -1;