aboutsummaryrefslogtreecommitdiff
path: root/NK_C_API.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-11-03 17:02:02 +0100
committerSzczepan Zalega <szczepan@nitrokey.com>2016-11-26 18:56:29 +0100
commit8cb4f03c841e7035af1893f260db5690cf6b4aa5 (patch)
treedafe45f4b40668013ae5d9bae180874715894662 /NK_C_API.cc
parentfe36daa38ab1995c8c7fc6470d06b8595efd2385 (diff)
downloadlibnitrokey-8cb4f03c841e7035af1893f260db5690cf6b4aa5.tar.gz
libnitrokey-8cb4f03c841e7035af1893f260db5690cf6b4aa5.tar.bz2
Document Storage methods in C API
Use uint8_t instead of int where appropriate Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
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 2a28ede..aeb6920 100644
--- a/NK_C_API.cc
+++ b/NK_C_API.cc
@@ -398,8 +398,8 @@ extern int NK_unlock_hidden_volume(const char* hidden_volume_password){
});
}
-extern int NK_create_hidden_volume(int slot_nr, int start_percent, int end_percent,
- const char* hidden_volume_password){
+extern int NK_create_hidden_volume(uint8_t slot_nr, uint8_t start_percent, uint8_t end_percent,
+ const char *hidden_volume_password){
auto m = NitrokeyManager::instance();
return get_without_result([&](){
m->create_hidden_volume( slot_nr, start_percent, end_percent,