[calls/wip/compiler-warnings: 8/12] mm: origin: Don't shadow props variable




commit 9932bada59a95c5541f7b6912e9b325330959974
Author: Evangelos Ribeiro Tzaras <evangelos tzaras puri sm>
Date:   Wed Jun 2 20:46:17 2021 +0200

    mm: origin: Don't shadow props variable
    
    As caught by compiling with `'-Wshadow`

 plugins/mm/calls-mm-origin.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plugins/mm/calls-mm-origin.c b/plugins/mm/calls-mm-origin.c
index ede0382d..b971912d 100644
--- a/plugins/mm/calls-mm-origin.c
+++ b/plugins/mm/calls-mm-origin.c
@@ -323,21 +323,21 @@ static void
 dial (CallsOrigin *origin, const gchar *number)
 {
   CallsMMOrigin *self = CALLS_MM_ORIGIN (origin);
-  MMCallProperties *props;
+  MMCallProperties *call_props;
 
   g_assert (self->voice != NULL);
 
-  props = mm_call_properties_new();
-  mm_call_properties_set_number (props, number);
+  call_props = mm_call_properties_new ();
+  mm_call_properties_set_number (call_props, number);
 
   mm_modem_voice_create_call
     (self->voice,
-     props,
+     call_props,
      NULL,
      (GAsyncReadyCallback) dial_cb,
      self);
 
-  g_object_unref (props);
+  g_object_unref (call_props);
 }
 
 


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