From 8b450c78247d700c8d255b4135e0a785b474a524 Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Thu, 7 Jul 2016 12:36:38 +0200 Subject: [PATCH] Make yaca_cleanup return void Change-Id: I325703541385d064f9f3ba36fc9aeebb1e0e7bde --- api/yaca/yaca_crypto.h | 5 +---- src/crypto.c | 6 ++---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/api/yaca/yaca_crypto.h b/api/yaca/yaca_crypto.h index 20cae17..9ee5ed7 100644 --- a/api/yaca/yaca_crypto.h +++ b/api/yaca/yaca_crypto.h @@ -66,12 +66,9 @@ int yaca_initialize(void); * * @since_tizen 3.0 * - * @return #YACA_ERROR_NONE on success - * @retval #YACA_ERROR_NONE Successful - * * @see yaca_initialize() */ -int yaca_cleanup(void); +void yaca_cleanup(void); /** * @brief Allocates the memory. diff --git a/src/crypto.c b/src/crypto.c index 158bcf8..5218aba 100644 --- a/src/crypto.c +++ b/src/crypto.c @@ -157,11 +157,11 @@ exit: return ret; } -API int yaca_cleanup(void) +API void yaca_cleanup(void) { /* calling cleanup twice on the same thread is a NOP */ if (!current_thread_initialized) - return YACA_ERROR_NONE; + return; /* per thread cleanup */ ERR_remove_thread_state(NULL); @@ -190,8 +190,6 @@ API int yaca_cleanup(void) current_thread_initialized = false; } pthread_mutex_unlock(&init_mutex); - - return YACA_ERROR_NONE; } API int yaca_malloc(size_t size, void **memory) -- 2.7.4