diff src/bluetooth/agent.c @ 2896:35773e919dba

removed unsed mutex - and a dupplicate function call
author Paula Stanciu <paula.stanciu@gmail.com>
date Wed, 13 Aug 2008 09:35:56 +0300
parents 4128ae5633e4
children 223822ba79f2
line wrap: on
line diff
--- a/src/bluetooth/agent.c	Wed Aug 13 01:59:25 2008 +0300
+++ b/src/bluetooth/agent.c	Wed Aug 13 09:35:56 2008 +0300
@@ -700,7 +700,7 @@
 static void bonding_created(DBusGProxy *object,
 				const char *address, gpointer user_data)
 {
-    bonded_dev_mutex = g_mutex_new (); 
+
 
 	const char *adapter = NULL, *name = NULL;
 	gchar *device, *text;
@@ -719,10 +719,8 @@
 			device = g_strdup_printf("%s (%s)", name, address);
 	} else
 		device = g_strdup(address);
-    
-    g_mutex_lock(bonded_dev_mutex);
-    bonded_dev = g_strdup_printf(address);
-    g_mutex_unlock(bonded_dev_mutex);
+       bonded_dev = g_strdup_printf(address);
+
 
 	text = g_strdup_printf(_("Created bonding with %s"), device);
     bonding_finish = 1;
@@ -756,7 +754,7 @@
 	text = g_strdup_printf(_("Removed bonding with %s"), device);
 
 	g_free(device);
-    printf("bonding removed");
+    printf("bonding removed\n");
 
 //	show_notification(adapter ? adapter : _("Bluetooth device"),
 //						text, NULL, 6000, NULL);