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:
@@ -147,13 +147,13 @@ mm_bearer_list_foreach (MMBearerList *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
MMBaseBearer *
|
MMBaseBearer *
|
||||||
mm_bearer_list_find_by_properties (MMBearerList *self,
|
mm_bearer_list_find_by_properties (MMBearerList *self,
|
||||||
MMBearerProperties *properties)
|
MMBearerProperties *props)
|
||||||
{
|
{
|
||||||
GList *l;
|
GList *l;
|
||||||
|
|
||||||
for (l = self->priv->bearers; l; l = g_list_next (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);
|
return g_object_ref (l->data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user