Fixes the following warnings:
tlv_eeprom.c:246:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
246 | for (i = 0; i < ARRAY_SIZE(tlv_code_list); i++) {
| ^
Signed-off-by: Hugo Villeneuve <hvilleneuve@dimonoff.com>
static inline const char *tlv_type2name(u8 type)
{
char *name = "Unknown";
- int i;
+ unsigned int i;
for (i = 0; i < ARRAY_SIZE(tlv_code_list); i++) {
if (tlv_code_list[i].m_code == type) {
*/
void show_tlv_code_list(void)
{
- int i;
+ unsigned int i;
printf("TLV Code TLV Name\n");
printf("======== =================\n");