core,broadband-bearer: fix warnings with -Wshadow

mm-broadband-bearer.c: In function ‘mm_broadband_bearer_new’:
  mm-broadband-bearer.c:2204:46: warning: declaration of ‘properties’ shadows a global declaration [-Wshadow]
   2204 |                          MMBearerProperties *properties,
        |                          ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
  mm-broadband-bearer.c:58:20: note: shadowed declaration is here
     58 | static GParamSpec *properties[PROP_LAST];
        |                    ^~~~~~~~~~
This commit is contained in:
Aleksander Morgado
2019-11-20 16:15:20 +01:00
parent 7c4220bc68
commit cdcc44922f

View File

@@ -2200,7 +2200,7 @@ initable_init_async (GAsyncInitable *initable,
void
mm_broadband_bearer_new (MMBroadbandModem *modem,
MMBearerProperties *properties,
MMBearerProperties *bearer_properties,
GCancellable *cancellable,
GAsyncReadyCallback callback,
gpointer user_data)
@@ -2219,7 +2219,7 @@ mm_broadband_bearer_new (MMBroadbandModem *modem,
callback,
user_data,
MM_BASE_BEARER_MODEM, modem,
MM_BASE_BEARER_CONFIG, properties,
MM_BASE_BEARER_CONFIG, bearer_properties,
MM_BROADBAND_BEARER_FLOW_CONTROL, flow_control,
NULL);
}