From: Jason Stover Date: Mon, 17 Apr 2006 17:52:26 +0000 (+0000) Subject: pspp_linreg_cache_free accepts a void pointer X-Git-Tag: sav-api~1976 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d12096b7b029b064fce4df4e3b1e153ed932b9a;p=pspp pspp_linreg_cache_free accepts a void pointer --- diff --git a/src/math/linreg/ChangeLog b/src/math/linreg/ChangeLog index b35a381b8a..7fecac64f8 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 3e29915769..ec1354f33e 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 67a422ea3f..a3b0c780e2 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