From 4e4634622ddb5712854bead9c200a3a1feb6a97c 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/program@1176 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_xport.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.30.2