[calls/wip/compiler-warnings: 7/12] ofono: call: Don't shadow props variable




commit 9bf84b374c9771234ab3e0c1f1b5b6475d29613b
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date:   Wed Jun 2 23:55:37 2021 +0200

    ofono: call: Don't shadow props variable
    
    As caught by compiling with `-Wshadow`

 plugins/ofono/calls-ofono-call.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/ofono/calls-ofono-call.c b/plugins/ofono/calls-ofono-call.c
index 61e7e1ed..9d521dcc 100644
--- a/plugins/ofono/calls-ofono-call.c
+++ b/plugins/ofono/calls-ofono-call.c
@@ -202,16 +202,16 @@ calls_ofono_call_tone_start (CallsCall *call, gchar key)
 
 static void
 set_properties (CallsOfonoCall *self,
-                GVariant       *props)
+                GVariant       *call_props)
 {
   const gchar *str = NULL;
 
-  g_return_if_fail (props != NULL);
+  g_return_if_fail (call_props != NULL);
 
-  g_variant_lookup (props, "LineIdentification", "s", &self->number);
-  g_variant_lookup (props, "Name", "s", &self->name);
+  g_variant_lookup (call_props, "LineIdentification", "s", &self->number);
+  g_variant_lookup (call_props, "Name", "s", &self->name);
 
-  g_variant_lookup (props, "State", "&s", &str);
+  g_variant_lookup (call_props, "State", "&s", &str);
   g_return_if_fail (str != NULL);
   calls_call_state_parse_nick (&self->state, str);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]