summaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2019-01-24 18:12:13 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2019-01-24 18:12:13 +0100
commit8e4c28de760033dde2469bb69b76a80076d0fc39 (patch)
treee018643abd334a16c26a5bc891e5414031249317 /NK_C_API.cc
parent55a71238ac5186187282f002b5eed7ec279f1ec1 (diff)
parentf6ae756f421f668b53131f7d924a6303f3b99c73 (diff)
downloadlibnitrokey-8e4c28de760033dde2469bb69b76a80076d0fc39.tar.gz
libnitrokey-8e4c28de760033dde2469bb69b76a80076d0fc39.tar.bz2
Merge branch 'pr_149'
Return uint8_t from version getters Fixes #149
Diffstat (limited to 'NK_C_API.cc')
-rw-r--r--NK_C_API.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/NK_C_API.cc b/NK_C_API.cc
index 9a8ac3c..eae35d5 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -721,14 +721,14 @@ NK_C_API char* NK_get_SD_usage_data_as_string() {
}, -2));
}
- NK_C_API int NK_get_major_firmware_version() {
+ NK_C_API uint8_t NK_get_major_firmware_version() {
auto m = NitrokeyManager::instance();
return get_with_result([&]() {
return m->get_major_firmware_version();
});
}
- NK_C_API int NK_get_minor_firmware_version() {
+ NK_C_API uint8_t NK_get_minor_firmware_version() {
auto m = NitrokeyManager::instance();
return get_with_result([&]() {
return m->get_minor_firmware_version();