X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fstats%2Foneway.q;h=9b45119f8664f1ae948a5bfc838479fa8115f921;hb=f4810d3c8656b3b3ab26303d2dae70fc361db7fb;hp=c63dc3a797103d2bf037fa00cfb74b76b1991b30;hpb=35c4cb8cfb59bf6e1eb770114850e1184cfafc9b;p=pspp diff --git a/src/language/stats/oneway.q b/src/language/stats/oneway.q index c63dc3a797..9b45119f86 100644 --- a/src/language/stats/oneway.q +++ b/src/language/stats/oneway.q @@ -71,13 +71,13 @@ static bool bad_weight_warn = true; static struct cmd_oneway cmd; /* The independent variable */ -static struct variable *indep_var; +static const struct variable *indep_var; /* Number of dependent variables */ static size_t n_vars; /* The dependent variables */ -static struct variable **vars; +static const struct variable **vars; /* A hash table containing all the distinct values of the independent @@ -175,7 +175,8 @@ output_oneway(void) sum += subc_list_double_at(&cmd.dl_contrast[i],j); if ( sum != 0.0 ) - msg(SW,_("Coefficients for contrast %d do not total zero"),i + 1); + msg(SW,_("Coefficients for contrast %d do not total zero"), + (int) i + 1); } if ( stat_tables & STAT_DESC ) @@ -224,7 +225,7 @@ oneway_custom_variables (struct lexer *lexer, && lex_token (lexer) != T_ALL) return 2; - if (!parse_variables (lexer, dict, &vars, &n_vars, + if (!parse_variables_const (lexer, dict, &vars, &n_vars, PV_DUPLICATE | PV_NUMERIC | PV_NO_SCRATCH) ) {