diff options
author | Rob Austein <sra@hactrn.net> | 2016-11-20 21:15:13 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-11-20 21:15:13 -0500 |
commit | f4b6098c2359a75cc16275aad7ba2bf001261dea (patch) | |
tree | 6e9d6d617436efab7a79ec49d446987146dd5b87 /ks_attribute.c | |
parent | 306c1dec5eb20da03bc9569aab83ae97a2ca9e7a (diff) |
Move UUID utilities to hal.h; change attribute values to (const void *).
Diffstat (limited to 'ks_attribute.c')
-rw-r--r-- | ks_attribute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ks_attribute.c b/ks_attribute.c index 53cd6bf..2621ed7 100644 --- a/ks_attribute.c +++ b/ks_attribute.c @@ -129,7 +129,7 @@ hal_error_t hal_ks_attribute_delete(uint8_t *bytes, const size_t bytes_len, return HAL_OK; const size_t delete_length = hal_ks_attribute_header_size + attributes[i].length; - const size_t delete_offset = attributes[i].value - hal_ks_attribute_header_size - bytes; + const size_t delete_offset = (uint8_t*) attributes[i].value - hal_ks_attribute_header_size - bytes; if (delete_offset + delete_length > *total_len) return HAL_ERROR_IMPOSSIBLE; |