summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2018-04-10 09:38:30 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2018-04-10 09:52:27 +0200
commit0e774eac10288d992bd36ea5a315edc497e9c463 (patch)
tree9516d6a555f4998ec8c2d0a933d594594a45b472
parent53599e95a5f0f1d9fed18c9b4418e6f506f5a973 (diff)
downloadlibnitrokey-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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/NK_C_API.h b/NK_C_API.h
index f5b87ad..96a1950 100644
--- a/NK_C_API.h
+++ b/NK_C_API.h
@@ -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.