From d048df5cabd2d17713230f260bccebb205740498 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Mon, 28 Nov 2005 20:29:47 +0000 Subject: - return value cleanup --- Source/charon/testcases/diffie_hellman_test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Source/charon/testcases/diffie_hellman_test.c') diff --git a/Source/charon/testcases/diffie_hellman_test.c b/Source/charon/testcases/diffie_hellman_test.c index 83758c908..ee2c30b3d 100644 --- a/Source/charon/testcases/diffie_hellman_test.c +++ b/Source/charon/testcases/diffie_hellman_test.c @@ -54,8 +54,8 @@ void test_diffie_hellman(tester_t *tester) tester->assert_true(tester,( other_diffie_hellman->get_my_public_value(other_diffie_hellman,&other_public_value) == SUCCESS), "get_my_public_value call check"); logger->log_chunk(logger,RAW,"Other public value",&other_public_value); - tester->assert_true(tester,( my_diffie_hellman->set_other_public_value(my_diffie_hellman,other_public_value) == SUCCESS), "set_other_public_value call check"); - tester->assert_true(tester,( other_diffie_hellman->set_other_public_value(other_diffie_hellman,my_public_value) == SUCCESS), "set_other_public_value call check"); + my_diffie_hellman->set_other_public_value(my_diffie_hellman,other_public_value); + other_diffie_hellman->set_other_public_value(other_diffie_hellman,my_public_value); allocator_free(my_public_value.ptr); allocator_free(other_public_value.ptr); @@ -71,7 +71,7 @@ void test_diffie_hellman(tester_t *tester) allocator_free(my_secret.ptr); allocator_free(other_secret.ptr); - tester->assert_true(tester,(my_diffie_hellman->destroy(my_diffie_hellman) == SUCCESS), "destroy call check"); - tester->assert_true(tester,(other_diffie_hellman->destroy(other_diffie_hellman) == SUCCESS), "destroy call check"); + my_diffie_hellman->destroy(my_diffie_hellman); + other_diffie_hellman->destroy(other_diffie_hellman); global_logger_manager->destroy_logger(global_logger_manager,logger); } -- cgit v1.2.3