From: John Darrington Date: Sat, 14 Aug 2010 15:09:59 +0000 (+0200) Subject: Constness X-Git-Tag: sav-api~75 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=5424322a9f6fc37dfb09760c779a63460ecf7eb5 Constness --- diff --git a/src/language/stats/oneway.c b/src/language/stats/oneway.c index 97088ebf96..e210bc4772 100644 --- a/src/language/stats/oneway.c +++ b/src/language/stats/oneway.c @@ -557,8 +557,8 @@ postcalc (const struct oneway_spec *cmd) } } -static void show_contrast_coeffs (const struct oneway_spec *cmd, struct oneway_workspace *ws); -static void show_contrast_tests (const struct oneway_spec *cmd, struct oneway_workspace *ws); +static void show_contrast_coeffs (const struct oneway_spec *cmd, const struct oneway_workspace *ws); +static void show_contrast_tests (const struct oneway_spec *cmd, const struct oneway_workspace *ws); static void output_oneway (const struct oneway_spec *cmd, struct oneway_workspace *ws) @@ -887,7 +887,7 @@ show_homogeneity (const struct oneway_spec *cmd, const struct oneway_workspace * for (v = 0; v < cmd->n_vars; ++v) { - struct per_var_ws *pvw = &ws->vws[v]; + const struct per_var_ws *pvw = &ws->vws[v]; const struct categoricals *cats = covariance_get_categoricals (pvw->cov); const struct variable *var = cmd->vars[v]; @@ -915,7 +915,7 @@ show_homogeneity (const struct oneway_spec *cmd, const struct oneway_workspace * /* Show the contrast coefficients table */ static void -show_contrast_coeffs (const struct oneway_spec *cmd, struct oneway_workspace *ws) +show_contrast_coeffs (const struct oneway_spec *cmd, const struct oneway_workspace *ws) { int c_num = 0; struct ll *cli; @@ -1007,7 +1007,7 @@ show_contrast_coeffs (const struct oneway_spec *cmd, struct oneway_workspace *ws /* Show the results of the contrast tests */ static void -show_contrast_tests (const struct oneway_spec *cmd, struct oneway_workspace *ws) +show_contrast_tests (const struct oneway_spec *cmd, const struct oneway_workspace *ws) { int n_contrasts = ll_count (&cmd->contrast_list); size_t v;