treewide: Use struct fmt_spec by value instead of pointer in most cases.
[pspp] / src / language / commands / sys-file-info.c
index 1b2b6784042807bc724e8a330f3c1bfd2c889e28..392e89b545e16b240c619942372b9f284ce2c0c0 100644 (file)
@@ -566,7 +566,7 @@ display_variables (const struct variable **vl, size_t n, int flags)
 
       if (flags & DF_PRINT_FORMAT)
         {
-          const struct fmt_spec *print = var_get_print_format (v);
+          struct fmt_spec print = var_get_print_format (v);
           char s[FMT_STRING_LEN_MAX + 1];
 
           pivot_table_put2 (
@@ -576,7 +576,7 @@ display_variables (const struct variable **vl, size_t n, int flags)
 
       if (flags & DF_WRITE_FORMAT)
         {
-          const struct fmt_spec *write = var_get_write_format (v);
+          struct fmt_spec write = var_get_write_format (v);
           char s[FMT_STRING_LEN_MAX + 1];
 
           pivot_table_put2 (