From b57bac17a6057cc0642e6ecea792e058596f92bb Mon Sep 17 00:00:00 2001 From: Jason Stover Date: Sat, 15 Jul 2006 20:25:01 +0000 Subject: [PATCH] made matrix argument const in coefficient initialization --- src/math/ChangeLog | 4 ++++ src/math/coefficient.c | 2 +- src/math/coefficient.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/math/ChangeLog b/src/math/ChangeLog index 1d99752e..2d1b2e96 100644 --- a/src/math/ChangeLog +++ b/src/math/ChangeLog @@ -1,3 +1,7 @@ +2006-07-15 Jason Stover + + * coefficient.c (pspp_coeff_init): Make design_matrix arg const. + 2006-07-14 Jason Stover * coefficient.c (pspp_coeff_init): Removed use of diff --git a/src/math/coefficient.c b/src/math/coefficient.c index fcd7425e..eb2ee317 100644 --- a/src/math/coefficient.c +++ b/src/math/coefficient.c @@ -53,7 +53,7 @@ pspp_coeff_free (struct pspp_coeff *c) coefficient structures for the linear model. */ void -pspp_coeff_init (struct pspp_coeff ** c, struct design_matrix *X) +pspp_coeff_init (struct pspp_coeff ** c, const struct design_matrix *X) { size_t i; int n_vals = 1; diff --git a/src/math/coefficient.h b/src/math/coefficient.h index 4019c549..75044f0c 100644 --- a/src/math/coefficient.h +++ b/src/math/coefficient.h @@ -72,7 +72,7 @@ void pspp_coeff_free (struct pspp_coeff *); Initialize the variable and value pointers inside the coefficient structures for the linear model. */ -void pspp_coeff_init (struct pspp_coeff **, struct design_matrix *); +void pspp_coeff_init (struct pspp_coeff **, const struct design_matrix *); void -- 2.30.2