X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Fmdd-writer.c;h=3fd651eb01afb2aafbdadf1754e9a1edc8a9f0f7;hb=339f1956cc727eda788638644ef93ab7852b31cd;hp=10728e8cbdf988b0181990b0338808465b8a0005;hpb=ff7ae14592cbdbebc4e4322424db95663ea7e166;p=pspp diff --git a/src/data/mdd-writer.c b/src/data/mdd-writer.c index 10728e8cbd..3fd651eb01 100644 --- a/src/data/mdd-writer.c +++ b/src/data/mdd-writer.c @@ -122,7 +122,7 @@ all_variables (struct dictionary *dict); struct all_dict_variables all_variables (struct dictionary *dict) { - size_t n_vars = dict_get_var_cnt (dict); + size_t n_vars = dict_get_n_vars (dict); /* Start with a set of all variable names. */ struct string_set var_names = STRING_SET_INITIALIZER (var_names); @@ -449,7 +449,7 @@ mdd_write (struct file_handle *fh, struct dictionary *dict, const char *sav_name) { struct mdd_writer *w = XZALLOC (struct mdd_writer); - size_t n_vars = dict_get_var_cnt (dict); + size_t n_vars = dict_get_n_vars (dict); /* Open file handle as an exclusive writer. */ /* TRANSLATORS: this fragment will be interpolated into @@ -624,7 +624,7 @@ mdd_write (struct file_handle *fh, struct dictionary *dict, /* We reserve ids 1...N_VARS for variables and then start other ids after that. */ - int id = dict_get_var_cnt (dict) + 1; + int id = dict_get_n_vars (dict) + 1; /* */ xmlTextWriterStartElement (w->writer, _xml ("definition"));