diff options
author | Paul Selkirk <paul@psgd.org> | 2017-10-23 18:05:31 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2017-10-23 18:05:31 -0400 |
commit | ca84af553cbaae45b17cce04d457b2e61cc4277c (patch) | |
tree | 90f2bc5e96d2f1ae3fece3dfb9075edda08c4ace /ks_attribute.c | |
parent | 12a3c63b75044b207dd7982ce3ed170231bd4467 (diff) |
Cleanup signed/unsigned mismatches, mostly in loop counters
Diffstat (limited to 'ks_attribute.c')
-rw-r--r-- | ks_attribute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ks_attribute.c b/ks_attribute.c index ec674f5..1eefefb 100644 --- a/ks_attribute.c +++ b/ks_attribute.c @@ -89,7 +89,7 @@ hal_error_t hal_ks_attribute_scan(const uint8_t * const bytes, const size_t byte const uint8_t *b = bytes; const uint8_t * const end = bytes + bytes_len; - for (int i = 0; i < attributes_len; i++) { + for (unsigned i = 0; i < attributes_len; i++) { uint32_t type; size_t length; hal_error_t err = read_header(b, end - b, &type, &length); @@ -125,7 +125,7 @@ hal_error_t hal_ks_attribute_delete(uint8_t *bytes, const size_t bytes_len, * attribute of any given type. */ - int i = 0; + unsigned i = 0; while (i < *attributes_len && attributes[i].type != type) i++; |