treewide: Use struct fmt_spec by value instead of pointer in most cases.
[pspp] / src / language / commands / sort-variables.c
index d30629feb0b7aa8c47837d5a5794e8c153405e91..58e833e9e7a59f6f5f57ecf8d0f198ef34b036a1 100644 (file)
@@ -65,13 +65,13 @@ compare_ints (int a, int b)
 }
 
 static int
-compare_formats (const struct fmt_spec *a, const struct fmt_spec *b)
+compare_formats (struct fmt_spec a, struct fmt_spec b)
 {
-  int retval = compare_ints (fmt_to_io (a->type), fmt_to_io (b->type));
+  int retval = compare_ints (fmt_to_io (a.type), fmt_to_io (b.type));
   if (!retval)
-    retval = compare_ints (a->w, b->w);
+    retval = compare_ints (a.w, b.w);
   if (!retval)
-    retval = compare_ints (a->d, b->d);
+    retval = compare_ints (a.d, b.d);
   return retval;
 }