summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2012-07-15 20:19:47 -0300
committerMarcel Holtmann <marcel@holtmann.org>2012-07-15 20:19:47 -0300
commit5a549e1ef7968f764d45d33e6516ea5172f55642 (patch)
tree2251d534ef4faad2a0619b3e26d7c3d73b41d7ab
parent38bea83fda1343af6cfd24353ef0081982c8371f (diff)
downloadofono-5a549e1ef7968f764d45d33e6516ea5172f55642.tar.bz2
bluetooth: Avoid shadowing of connection variable
-rw-r--r--plugins/bluetooth.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/bluetooth.c b/plugins/bluetooth.c
index 91c8d18f..5d28530e 100644
--- a/plugins/bluetooth.c
+++ b/plugins/bluetooth.c
@@ -350,7 +350,7 @@ static void parse_devices(DBusMessageIter *array, gpointer user_data)
}
}
-static gboolean property_changed(DBusConnection *connection, DBusMessage *msg,
+static gboolean property_changed(DBusConnection *conn, DBusMessage *msg,
void *user_data)
{
const char *property;
@@ -698,7 +698,7 @@ done:
dbus_message_unref(reply);
}
-static gboolean adapter_added(DBusConnection *connection, DBusMessage *message,
+static gboolean adapter_added(DBusConnection *conn, DBusMessage *message,
void *user_data)
{
const char *path;
@@ -720,7 +720,7 @@ static void bluetooth_remove(gpointer key, gpointer value, gpointer user_data)
profile->remove(user_data);
}
-static gboolean adapter_removed(DBusConnection *connection,
+static gboolean adapter_removed(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
const char *path;
@@ -735,7 +735,7 @@ static gboolean adapter_removed(DBusConnection *connection,
return TRUE;
}
-static gboolean device_removed(DBusConnection *connection,
+static gboolean device_removed(DBusConnection *conn,
DBusMessage *message, void *user_data)
{
const char *path;
@@ -801,7 +801,7 @@ done:
dbus_message_unref(reply);
}
-static void bluetooth_connect(DBusConnection *connection, void *user_data)
+static void bluetooth_connect(DBusConnection *conn, void *user_data)
{
bluetooth_send_with_reply("/", BLUEZ_MANAGER_INTERFACE, "GetProperties",
NULL, manager_properties_cb, NULL, NULL, -1,
@@ -813,7 +813,7 @@ static void bluetooth_connect(DBusConnection *connection, void *user_data)
DBUS_TYPE_INVALID);
}
-static void bluetooth_disconnect(DBusConnection *connection, void *user_data)
+static void bluetooth_disconnect(DBusConnection *conn, void *user_data)
{
if (uuid_hash == NULL)
return;