X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flanguage%2Fdictionary%2Fmodify-variables.c;h=cd5016910d61242c0c6afa8698a8f43553d38308;hb=124dea11f9542304e35bef92b7f3a46d5afca4d7;hp=f205a1cc0517448df697025875d8efa1650159a8;hpb=43b1296aafe7582e7dbe6c2b6a8b478d7d9b0fcf;p=pspp-builds.git diff --git a/src/language/dictionary/modify-variables.c b/src/language/dictionary/modify-variables.c index f205a1cc..cd501691 100644 --- a/src/language/dictionary/modify-variables.c +++ b/src/language/dictionary/modify-variables.c @@ -24,17 +24,17 @@ #include #include #include -#include #include #include #include #include #include #include -#include #include #include +#include "xalloc.h" + #include "gettext.h" #define _(msgid) gettext (msgid) @@ -138,7 +138,7 @@ cmd_modify_vars (struct lexer *lexer, struct dataset *ds) "of variables.")); goto done; } - dict_get_vars_mutable (dataset_dict (ds), &v, &nv, 1u << DC_SYSTEM); + dict_get_vars_mutable (dataset_dict (ds), &v, &nv, DC_SYSTEM); } else { @@ -206,9 +206,8 @@ cmd_modify_vars (struct lexer *lexer, struct dataset *ds) if (prev_nv_1 != vm.rename_cnt) { msg (SE, _("Differing number of variables in old name list " - "(%d) and in new name list (%d)."), - (int) (vm.rename_cnt - prev_nv_2), - (int) (prev_nv_1 - prev_nv_2)); + "(%zu) and in new name list (%zu)."), + vm.rename_cnt - prev_nv_2, prev_nv_1 - prev_nv_2); for (i = 0; i < prev_nv_1; i++) free (vm.new_names[i]); free (vm.new_names); @@ -231,8 +230,8 @@ cmd_modify_vars (struct lexer *lexer, struct dataset *ds) if (already_encountered & 4) { - msg (SE, _("KEEP subcommand may be given at most once. It may not" - "be given in conjunction with the DROP subcommand.")); + msg (SE, _("KEEP subcommand may be given at most once. It may " + "not be given in conjunction with the DROP subcommand.")); goto done; } already_encountered |= 4; @@ -368,7 +367,7 @@ compare_variables_given_ordering (const void *a_, const void *b_, struct var_renaming { struct variable *var; - char new_name[LONG_NAME_LEN + 1]; + char new_name[VAR_NAME_LEN + 1]; }; /* A algo_compare_func that compares new_name members in struct