diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2020-07-31 13:33:39 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2020-07-31 13:33:39 +0200 |
commit | e3b51bcadc0bca4164c1fd1df12e52e4f69d2c26 (patch) | |
tree | 2480072ec0db1e18e87cf769409caf669fcff200 /NK_C_API.cc | |
parent | 4b698519fc125ee03f47560402e2c35c495e0f7c (diff) | |
download | libnitrokey-e3b51bcadc0bca4164c1fd1df12e52e4f69d2c26.tar.gz libnitrokey-e3b51bcadc0bca4164c1fd1df12e52e4f69d2c26.tar.bz2 |
Remove redundant iostream inclusions184-storage-only
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r-- | NK_C_API.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc index 5460a92..951532b 100644 --- a/NK_C_API.cc +++ b/NK_C_API.cc @@ -20,7 +20,9 @@ */ #include "NK_C_API.h" +#ifndef NO_LOG #include <iostream> +#endif #include <tuple> #include "libnitrokey/NitrokeyManager.h" #include <cstring> @@ -63,11 +65,15 @@ extern "C" { } catch (const DeviceCommunicationException &deviceException){ NK_last_command_status = 256-deviceException.getType(); +#ifndef NO_LOG cerr << deviceException.what() << endl; +#endif return 0; } catch (std::runtime_error &e) { - cerr << e.what() << endl; +#ifndef NO_LOG + cerr << e.what() << endl; +#endif return 0; } return 0; |