diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-10-22 15:29:59 +0200 |
---|---|---|
committer | szszszsz <szszszsz@users.noreply.github.com> | 2016-10-22 15:33:07 +0200 |
commit | 2b3c815af73f31a4e12db6ed92290cf76b8e2914 (patch) | |
tree | 1cd572a6174dd5261bb9a54061058f14c70f4be6 /include/device_proto.h | |
parent | 82a0fc21f039971acac18df0ee57e2bb010865e1 (diff) | |
download | libnitrokey-2b3c815af73f31a4e12db6ed92290cf76b8e2914.tar.gz libnitrokey-2b3c815af73f31a4e12db6ed92290cf76b8e2914.tar.bz2 |
Fix compilation warning and error under G++ - use union to reach uint8 slot_counter for NK Storage. Fixes #46
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'include/device_proto.h')
-rw-r--r-- | include/device_proto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/device_proto.h b/include/device_proto.h index 45f165b..7316dc8 100644 --- a/include/device_proto.h +++ b/include/device_proto.h @@ -105,7 +105,7 @@ namespace nitrokey { uint8_t command_id; uint8_t device_status; //@see stick20::device_status uint8_t progress_bar_value; - } storage_status __packed; + } __packed storage_status; } __packed; uint32_t crc; |