From 78cde9a378ca425e0081dec40acac459bbbf7101 Mon Sep 17 00:00:00 2001 From: oetiker Date: Wed, 1 Aug 2007 15:25:58 +0000 Subject: [PATCH] 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 --- program/src/rrd_xport.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2