From 7c1c040bc57dcfd4ef8abdb481ef7b3df2b116b6 Mon Sep 17 00:00:00 2001 From: Szczepan Zalega Date: Fri, 5 Aug 2016 09:54:02 +0200 Subject: Do not return void functions results Signed-off-by: Szczepan Zalega --- NK_C_API.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/NK_C_API.cc b/NK_C_API.cc index 5aa0e76..2b3b5ea 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -106,20 +106,20 @@ extern int NK_first_authenticate(const char* admin_password, const char* admin_t extern int NK_user_authenticate(const char* user_password, const char* user_temporary_password){ auto m = NitrokeyManager::instance(); return get_without_result( [&](){ - return m->user_authenticate(user_password, user_temporary_password); + m->user_authenticate(user_password, user_temporary_password); }); } extern int NK_factory_reset(const char* admin_password){ auto m = NitrokeyManager::instance(); return get_without_result( [&](){ - return m->factory_reset(admin_password); + m->factory_reset(admin_password); }); } extern int NK_build_aes_key(const char* admin_password){ auto m = NitrokeyManager::instance(); return get_without_result( [&](){ - return m->build_aes_key(admin_password); + m->build_aes_key(admin_password); }); } -- cgit v1.2.3