summaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 09:54:02 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-05 10:19:25 +0200
commit7c1c040bc57dcfd4ef8abdb481ef7b3df2b116b6 (patch)
tree13f09bece7e2ddf20c18b7bb45093f1e9733be5e /NK_C_API.cc
parent2434101d9f30e29b8f39edf0867356e9f2ff1db1 (diff)
downloadlibnitrokey-7c1c040bc57dcfd4ef8abdb481ef7b3df2b116b6.tar.gz
libnitrokey-7c1c040bc57dcfd4ef8abdb481ef7b3df2b116b6.tar.bz2
Do not return void functions results
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc6
1 files 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);
});
}