Clean up compile warning

Previously, compiling would complain

   warning: comparison of integer expressions of different signedness:
   ‘int’ and ‘uint32_t’

Change-Id: Ic839ab02189103975985fc0557d6846052635b14
This commit is contained in:
Tim Burke 2021-10-25 21:49:40 -07:00
parent 61d1dd7d1e
commit 033fc066f3

View File

@ -989,7 +989,7 @@ hex_encode_string(char *buf, uint32_t buf_len)
{
char *hex_encoded_buf = (char*)alloc_zeroed_buffer((buf_len * 2) + 1);
char *hex_encoded_ptr = hex_encoded_buf;
int i;
uint32_t i;
for (i = 0; i < buf_len; i++) {
hex_encoded_ptr += sprintf(hex_encoded_ptr, "%.2x", (unsigned char)buf[i]);