From 38bea83fda1343af6cfd24353ef0081982c8371f Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Sun, 15 Jul 2012 20:19:28 -0300 Subject: [PATCH] stemgr: Avoid shadowing of connection variable --- plugins/stemgr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/stemgr.c b/plugins/stemgr.c index 7e434d36..0a3e4d2d 100644 --- a/plugins/stemgr.c +++ b/plugins/stemgr.c @@ -305,7 +305,7 @@ error: dbus_message_unref(message); } -static gboolean property_changed(DBusConnection *connection, +static gboolean property_changed(DBusConnection *conn, DBusMessage *message, void *user_data) { DBusMessageIter iter; @@ -335,9 +335,9 @@ static gboolean property_changed(DBusConnection *connection, return TRUE; } -static void mgr_connect(DBusConnection *connection, void *user_data) +static void mgr_connect(DBusConnection *conn, void *user_data) { - property_changed_watch = g_dbus_add_signal_watch(connection, + property_changed_watch = g_dbus_add_signal_watch(conn, MGR_SERVICE, NULL, MGR_MODEM_INTERFACE, PROPERTY_CHANGED, @@ -346,10 +346,10 @@ static void mgr_connect(DBusConnection *connection, void *user_data) get_modems(); } -static void mgr_disconnect(DBusConnection *connection, void *user_data) +static void mgr_disconnect(DBusConnection *conn, void *user_data) { g_hash_table_remove_all(modem_list); - g_dbus_remove_watch(connection, property_changed_watch); + g_dbus_remove_watch(conn, property_changed_watch); property_changed_watch = 0; }