Skip to content

Commit

Permalink
multipath-tools tests: add void parameter to functions
Browse files Browse the repository at this point in the history
This allows the tests to be compiled with -Werror=strict-prototypes

Reported-by: Tomasz Kłoczko (github.com/opensvc/issues/80)
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
Reviewed-by: Martin Wilck <mwilck@suse.com>
  • Loading branch information
bmarzins authored and mwilck committed Jan 31, 2024
1 parent 94b8361 commit 315708b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/alias.c
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ static void gufa_check_locking(void **state) {
assert_int_equal(lock_errors, 0);
}

static int test_get_user_friendly_alias()
static int test_get_user_friendly_alias(void)
{
const struct CMUnitTest tests[] = {
cmocka_unit_test_teardown(gufa_empty_new_rw, teardown_bindings),
Expand Down Expand Up @@ -1981,7 +1981,7 @@ static void order_06(void **state)
order_test(ARRAY_SIZE(ra), ra, true);
}

static int test_bindings_order()
static int test_bindings_order(void)
{
const struct CMUnitTest tests[] = {
cmocka_unit_test_teardown(order_01, teardown_bindings),
Expand Down

0 comments on commit 315708b

Please sign in to comment.