From 0e774eac10288d992bd36ea5a315edc497e9c463 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Tue, 10 Apr 2018 09:38:30 +0200 Subject: 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. --- NK_C_API.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.1