From: tb Date: Thu, 8 Dec 2022 18:10:52 +0000 (+0000) Subject: bio chain test: lose some do_{,bio_} prefixes X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8a7db61462fc4657acdb9e6ef72f49af3c765b33;p=openbsd bio chain test: lose some do_{,bio_} prefixes --- diff --git a/regress/lib/libcrypto/bio/bio_chain.c b/regress/lib/libcrypto/bio/bio_chain.c index 143c4e147bb..45282843f6e 100644 --- a/regress/lib/libcrypto/bio/bio_chain.c +++ b/regress/lib/libcrypto/bio/bio_chain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio_chain.c,v 1.1 2022/12/08 17:49:02 tb Exp $ */ +/* $OpenBSD: bio_chain.c,v 1.2 2022/12/08 18:10:52 tb Exp $ */ /* * Copyright (c) 2022 Theo Buehler * @@ -35,7 +35,7 @@ BIO_prev(BIO *bio) } static int -do_bio_chain_pop_test(void) +bio_chain_pop_test(void) { BIO *bio[N_CHAIN_BIOS]; BIO *prev, *next; @@ -196,7 +196,7 @@ do_bio_chain_pop_test(void) */ static int -do_bio_link_chains_at(size_t i, size_t j, int use_bio_push) +link_chains_at(size_t i, size_t j, int use_bio_push) { BIO *A[N_CHAIN_BIOS], *B[N_CHAIN_BIOS]; BIO *oldhead_start, *oldhead_end, *oldtail_start, *oldtail_end; @@ -489,14 +489,14 @@ do_bio_link_chains_at(size_t i, size_t j, int use_bio_push) } static int -do_bio_link_chains(int use_bio_push) +link_chains(int use_bio_push) { size_t i, j; int failure = 0; for (i = 0; i < N_CHAIN_BIOS; i++) { for (j = 0; j < N_CHAIN_BIOS; j++) { - failure |= do_bio_link_chains_at(i, j, use_bio_push); + failure |= link_chains_at(i, j, use_bio_push); } } @@ -504,19 +504,19 @@ do_bio_link_chains(int use_bio_push) } static int -do_bio_push_link_test(void) +bio_push_link_test(void) { int use_bio_push = 1; - return do_bio_link_chains(use_bio_push); + return link_chains(use_bio_push); } static int -do_bio_set_next_link_test(void) +bio_set_next_link_test(void) { int use_bio_push = 0; - return do_bio_link_chains(use_bio_push); + return link_chains(use_bio_push); } int @@ -524,9 +524,9 @@ main(int argc, char **argv) { int failed = 0; - failed |= do_bio_chain_pop_test(); - failed |= do_bio_push_link_test(); - failed |= do_bio_set_next_link_test(); + failed |= bio_chain_pop_test(); + failed |= bio_push_link_test(); + failed |= bio_set_next_link_test(); return failed; }