X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/b64eb60f6c1fdb12f3922e04913e137199838807..c7da785d89746cbcdc25bdea0fd66156d4c61cb9:/utils/t/versioncmp-test.c diff --git a/utils/t/versioncmp-test.c b/utils/t/versioncmp-test.c index 789565d..1368e00 100644 --- a/utils/t/versioncmp-test.c +++ b/utils/t/versioncmp-test.c @@ -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 };