From: tb Date: Sun, 26 Mar 2023 18:57:04 +0000 (+0000) Subject: Rename dump_results() into dump_exp_results() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=1becb5f056a3484079f6a6715541564873718c98;p=openbsd Rename dump_results() into dump_exp_results() This prepares for consistency with an upcoming diff. While here fix an argument order bug. --- diff --git a/regress/lib/libcrypto/bn/bn_mod_exp.c b/regress/lib/libcrypto/bn/bn_mod_exp.c index 6d25f11b555..002649fd607 100644 --- a/regress/lib/libcrypto/bn/bn_mod_exp.c +++ b/regress/lib/libcrypto/bn/bn_mod_exp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_mod_exp.c,v 1.18 2023/03/26 18:54:08 tb Exp $ */ +/* $OpenBSD: bn_mod_exp.c,v 1.19 2023/03/26 18:57:04 tb Exp $ */ /* * Copyright (c) 2022,2023 Theo Buehler @@ -280,8 +280,8 @@ generate_test_triple(int reduce, BIGNUM *a, BIGNUM *p, BIGNUM *m, BN_CTX *ctx) } static void -dump_results(const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, - const BIGNUM *got, const BIGNUM *want, const char *name) +dump_exp_results(const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, + const BIGNUM *want, const BIGNUM *got, const char *name) { printf("BN_mod_exp_simple() and %s() disagree", name); @@ -321,7 +321,7 @@ test_mod_exp(const BIGNUM *want, const BIGNUM *a, const BIGNUM *p, errx(1, "%s() failed", test->name); if (BN_cmp(want, got) != 0) { - dump_results(a, p, m, want, got, test->name); + dump_exp_results(a, p, m, want, got, test->name); goto err; }