From: Tobias Oetiker Date: Wed, 1 Aug 2007 15:25:58 +0000 (+0000) Subject: fixed 64bit portability error ... unigned long is not equal to int X-Git-Tag: 1.2.24~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9915e2b8143431dc9611d6c4203a67271469e5f4;p=thirdparty%2Frrdtool-1.x.git fixed 64bit portability error ... unigned long is not equal to int git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1176 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_xport.c b/src/rrd_xport.c index ef964a03..618464cc 100644 --- a/src/rrd_xport.c +++ b/src/rrd_xport.c @@ -165,7 +165,7 @@ rrd_xport_fn(image_desc_t *im, 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; @@ -257,8 +257,8 @@ rrd_xport_fn(image_desc_t *im, if (((*data) = malloc((*col_cnt) * row_cnt * sizeof(rrd_value_t)))==NULL){ free(srcptr_list); free(ref_list); - free(legend_list); - rrd_set_error("malloc xport data area"); + free(legend_list); + rrd_set_error("malloc xport data area"); return(-1); } dstptr = (*data);