From ddcbe264745a0c10d80d8ad74125d23eb251662d Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 25 Nov 2015 10:42:00 -0500 Subject: Now that crypto_rand() cannot fail, it should return void. --- src/test/test_extorport.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/test/test_extorport.c') diff --git a/src/test/test_extorport.c b/src/test/test_extorport.c index 2e5a32eef3..5d38ed8fa2 100644 --- a/src/test/test_extorport.c +++ b/src/test/test_extorport.c @@ -309,15 +309,14 @@ test_ext_or_cookie_auth(void *arg) tor_free(client_hash2); } -static int +static void crypto_rand_return_tse_str(char *to, size_t n) { if (n != 32) { TT_FAIL(("Asked for %d bytes, not 32", (int)n)); - return -1; + return; } memcpy(to, "te road There is always another ", 32); - return 0; } static void -- cgit v1.2.3-54-g00ecf