From f4b6098c2359a75cc16275aad7ba2bf001261dea Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 20 Nov 2016 21:15:13 -0500 Subject: Move UUID utilities to hal.h; change attribute values to (const void *). --- ks_attribute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ks_attribute.c') 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; -- cgit v1.2.3