From 4d12096b7b029b064fce4df4e3b1e153ed932b9a Mon Sep 17 00:00:00 2001 From: Jason Stover Date: Mon, 17 Apr 2006 17:52:26 +0000 Subject: [PATCH] pspp_linreg_cache_free accepts a void pointer --- src/math/linreg/ChangeLog | 5 +++++ src/math/linreg/linreg.c | 3 ++- src/math/linreg/linreg.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/math/linreg/ChangeLog b/src/math/linreg/ChangeLog index b35a381b..7fecac64 100644 --- a/src/math/linreg/ChangeLog +++ b/src/math/linreg/ChangeLog @@ -1,3 +1,8 @@ +2006-04-17 Jason Stover + + * linreg.c (pspp_linreg_cache_free): Accept a pointer of type + void to match definition of trns_proc_func. + 2006-04-17 Jason Stover * linreg.c (pspp_linreg_cache_free): Return a bool. diff --git a/src/math/linreg/linreg.c b/src/math/linreg/linreg.c index 3e299157..ec1354f3 100644 --- a/src/math/linreg/linreg.c +++ b/src/math/linreg/linreg.c @@ -122,8 +122,9 @@ pspp_linreg_cache_alloc (size_t n, size_t p) } bool -pspp_linreg_cache_free (pspp_linreg_cache * c) +pspp_linreg_cache_free (void * m) { + pspp_linreg_cache *c = m; gsl_vector_free (c->indep_means); gsl_vector_free (c->indep_std); gsl_vector_free (c->ss_indeps); diff --git a/src/math/linreg/linreg.h b/src/math/linreg/linreg.h index 67a422ea..a3b0c780 100644 --- a/src/math/linreg/linreg.h +++ b/src/math/linreg/linreg.h @@ -178,7 +178,7 @@ typedef struct pspp_linreg_cache_struct pspp_linreg_cache; */ pspp_linreg_cache *pspp_linreg_cache_alloc (size_t n, size_t p); -bool pspp_linreg_cache_free (pspp_linreg_cache * c); +bool pspp_linreg_cache_free (void *); /* Fit the linear model via least squares. All pointers passed to pspp_linreg -- 2.30.2