Browse Source

avahi: use size_t for subscripting

pull/162/head
Alexandre Janniaux 2 years ago
committed by Steve Lhomme
parent
commit
73dd4d7c18
  1. 4
      modules/services_discovery/avahi.c

4
modules/services_discovery/avahi.c

@ -278,7 +278,7 @@ static void resolve_callback(
const char *psz_protocol = NULL;
bool is_renderer = false;
for( unsigned int i = 0; i < ARRAY_SIZE(protocols); i++ )
for (size_t i = 0; i < ARRAY_SIZE(protocols); i++)
{
if( !strcmp(type, protocols[i].psz_service_name) )
{
@ -454,7 +454,7 @@ static int OpenCommon( discovery_sys_t *p_sys )
goto error;
}
for( unsigned i = 0; i < ARRAY_SIZE(protocols); i++ )
for (size_t i = 0; i < ARRAY_SIZE(protocols); i++)
{
if( protocols[i].b_renderer != p_sys->renderer )
continue;

Loading…
Cancel
Save