bearer-list: fix warnings with -Wshadow

mm-bearer-list.c: In function ‘mm_bearer_list_find_by_properties’:
  	mm-bearer-list.c:151:56: error: declaration of ‘properties’ shadows a global declaration [-Werror=shadow]
  	  151 |                                    MMBearerProperties *properties)
  	      |                                    ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
  	mm-bearer-list.c:42:20: note: shadowed declaration is here
  	   42 | static GParamSpec *properties[PROP_LAST];
  	      |                    ^~~~~~~~~~
This commit is contained in:
Aleksander Morgado
2019-11-28 22:35:09 +01:00
parent 71ee2e900d
commit c93a3cf589

View File

@@ -147,13 +147,13 @@ mm_bearer_list_foreach (MMBearerList *self,
}
MMBaseBearer *
mm_bearer_list_find_by_properties (MMBearerList *self,
MMBearerProperties *properties)
mm_bearer_list_find_by_properties (MMBearerList *self,
MMBearerProperties *props)
{
GList *l;
for (l = self->priv->bearers; l; l = g_list_next (l)) {
if (mm_bearer_properties_cmp (mm_base_bearer_peek_config (MM_BASE_BEARER (l->data)), properties))
if (mm_bearer_properties_cmp (mm_base_bearer_peek_config (MM_BASE_BEARER (l->data)), props))
return g_object_ref (l->data);
}