|
1 |
| -/* $OpenBSD: bio_chain.c,v 1.1 2022/12/08 17:49:02 tb Exp $ */ |
| 1 | +/* $OpenBSD: bio_chain.c,v 1.2 2022/12/08 18:10:52 tb Exp $ */ |
2 | 2 | /*
|
3 | 3 | * Copyright (c) 2022 Theo Buehler <tb@openbsd.org>
|
4 | 4 | *
|
@@ -35,7 +35,7 @@ BIO_prev(BIO *bio)
|
35 | 35 | }
|
36 | 36 |
|
37 | 37 | static int
|
38 |
| -do_bio_chain_pop_test(void) |
| 38 | +bio_chain_pop_test(void) |
39 | 39 | {
|
40 | 40 | BIO *bio[N_CHAIN_BIOS];
|
41 | 41 | BIO *prev, *next;
|
@@ -196,7 +196,7 @@ do_bio_chain_pop_test(void)
|
196 | 196 | */
|
197 | 197 |
|
198 | 198 | static int
|
199 |
| -do_bio_link_chains_at(size_t i, size_t j, int use_bio_push) |
| 199 | +link_chains_at(size_t i, size_t j, int use_bio_push) |
200 | 200 | {
|
201 | 201 | BIO *A[N_CHAIN_BIOS], *B[N_CHAIN_BIOS];
|
202 | 202 | BIO *oldhead_start, *oldhead_end, *oldtail_start, *oldtail_end;
|
@@ -489,44 +489,44 @@ do_bio_link_chains_at(size_t i, size_t j, int use_bio_push)
|
489 | 489 | }
|
490 | 490 |
|
491 | 491 | static int
|
492 |
| -do_bio_link_chains(int use_bio_push) |
| 492 | +link_chains(int use_bio_push) |
493 | 493 | {
|
494 | 494 | size_t i, j;
|
495 | 495 | int failure = 0;
|
496 | 496 |
|
497 | 497 | for (i = 0; i < N_CHAIN_BIOS; i++) {
|
498 | 498 | for (j = 0; j < N_CHAIN_BIOS; j++) {
|
499 |
| - failure |= do_bio_link_chains_at(i, j, use_bio_push); |
| 499 | + failure |= link_chains_at(i, j, use_bio_push); |
500 | 500 | }
|
501 | 501 | }
|
502 | 502 |
|
503 | 503 | return failure;
|
504 | 504 | }
|
505 | 505 |
|
506 | 506 | static int
|
507 |
| -do_bio_push_link_test(void) |
| 507 | +bio_push_link_test(void) |
508 | 508 | {
|
509 | 509 | int use_bio_push = 1;
|
510 | 510 |
|
511 |
| - return do_bio_link_chains(use_bio_push); |
| 511 | + return link_chains(use_bio_push); |
512 | 512 | }
|
513 | 513 |
|
514 | 514 | static int
|
515 |
| -do_bio_set_next_link_test(void) |
| 515 | +bio_set_next_link_test(void) |
516 | 516 | {
|
517 | 517 | int use_bio_push = 0;
|
518 | 518 |
|
519 |
| - return do_bio_link_chains(use_bio_push); |
| 519 | + return link_chains(use_bio_push); |
520 | 520 | }
|
521 | 521 |
|
522 | 522 | int
|
523 | 523 | main(int argc, char **argv)
|
524 | 524 | {
|
525 | 525 | int failed = 0;
|
526 | 526 |
|
527 |
| - failed |= do_bio_chain_pop_test(); |
528 |
| - failed |= do_bio_push_link_test(); |
529 |
| - failed |= do_bio_set_next_link_test(); |
| 527 | + failed |= bio_chain_pop_test(); |
| 528 | + failed |= bio_push_link_test(); |
| 529 | + failed |= bio_set_next_link_test(); |
530 | 530 |
|
531 | 531 | return failed;
|
532 | 532 | }
|
0 commit comments