From: John Darrington Date: Sat, 29 Jun 2019 05:57:34 +0000 (+0200) Subject: Descriptives: Constness X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=918329b9f5491e695130870da8b34cf19203280f;p=pspp Descriptives: Constness --- diff --git a/src/language/stats/descriptives.c b/src/language/stats/descriptives.c index 1ee9874f0f..e2cb058aa9 100644 --- a/src/language/stats/descriptives.c +++ b/src/language/stats/descriptives.c @@ -76,7 +76,7 @@ struct dsc_trns size_t var_cnt; /* Number of variables. */ enum dsc_missing_type missing_type; /* Treatment of missing values. */ enum mv_class exclude; /* Classes of missing values to exclude. */ - struct variable *filter; /* Dictionary FILTER BY variable. */ + const struct variable *filter; /* Dictionary FILTER BY variable. */ struct casereader *z_reader; /* Reader for count, mean, stddev. */ casenumber count; /* Number left in this SPLIT FILE group.*/ bool ok; @@ -780,7 +780,7 @@ static void calc_descriptives (struct dsc_proc *dsc, struct casereader *group, struct dataset *ds) { - struct variable *filter = dict_get_filter (dataset_dict (ds)); + const struct variable *filter = dict_get_filter (dataset_dict (ds)); struct casereader *pass1, *pass2; casenumber count; struct ccase *c;