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=78cde9a378ca425e0081dec40acac459bbbf7101;p=rrdtool-all.git fixed 64bit portability error ... unigned long is not equal to int git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@1176 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_xport.c b/program/src/rrd_xport.c index ef964a03..618464cc 100644 --- a/program/src/rrd_xport.c +++ b/program/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);