chiark / gitweb /
@@@ adjust bench timings
[mLib] / utils / t / versioncmp-test.c
index 789565d14b81d596701ec9f65b1c9017b38b4ebc..1368e00aa7170d3c1f614e647523cb79983a219d 100644 (file)
@@ -37,7 +37,7 @@ static void test_versioncmp(const struct tvec_reg *in, struct tvec_reg *out,
                            void *ctx)
   { out[RRC].v.i = versioncmp(in[RV0].v.str.p, in[RV1].v.str.p); }
 
-static void swap_test(struct tvec_state *tv)
+static int swap_test(struct tvec_state *tv)
 {
   struct tvec_reg rt;
 
@@ -46,6 +46,7 @@ static void swap_test(struct tvec_state *tv)
   rt = tv->in[RV0]; tv->in[RV0] = tv->in[RV1]; tv->in[RV1] = rt;
   tv->in[RRC].v.i = -tv->in[RRC].v.i;
   tv->test->fn(tv->in, tv->out, 0); tvec_check(tv, "swapped");
+  return (0);
 }
 
 static const struct tvec_irange cmp_range = { -1, +1 };