From: 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-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4e4634622ddb5712854bead9c200a3a1feb6a97c;p=rrdtool.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 ef964a0..618464c 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);