diff options
author | Robin Krahl <me@robin-krahl.de> | 2018-04-10 09:38:30 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2018-04-10 09:52:27 +0200 |
commit | 0e774eac10288d992bd36ea5a315edc497e9c463 (patch) | |
tree | 9516d6a555f4998ec8c2d0a933d594594a45b472 | |
parent | 53599e95a5f0f1d9fed18c9b4418e6f506f5a973 (diff) | |
download | libnitrokey-0e774eac10288d992bd36ea5a315edc497e9c463.tar.gz libnitrokey-0e774eac10288d992bd36ea5a315edc497e9c463.tar.bz2 |
Add missing `enum` specifier in the C API
Contrary to C++, C requires the type `enum NK_device_model` instead of
only `NK_device_model` when refering to the enum with that name.
-rw-r--r-- | NK_C_API.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -73,7 +73,7 @@ extern "C" { * @param device_model NK_device_model: NK_PRO: Nitrokey Pro, NK_STORAGE: Nitrokey Storage * @return 1 if connected, 0 if wrong model or cannot connect */ - NK_C_API int NK_login_enum(NK_device_model device_model); + NK_C_API int NK_login_enum(enum NK_device_model device_model); /** * Connect to first available device, starting checking from Pro 1st to Storage 2nd. |