From 5d14a87639406b220edaf07088eddc22a7f9b0fe Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 12 Mar 2008 18:57:37 +0000 Subject: Remove the local D-Bus setup --- hcid/dbus-service.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'hcid/dbus-service.c') diff --git a/hcid/dbus-service.c b/hcid/dbus-service.c index df04a325..b6875833 100644 --- a/hcid/dbus-service.c +++ b/hcid/dbus-service.c @@ -435,7 +435,7 @@ static gboolean service_startup_timeout(gpointer data) int service_start(struct service *service, DBusConnection *conn) { DBusError derr; - char *addr, *argv[2], *envp[2], command[PATH_MAX], address[256]; + char *argv[2], *envp[1], command[PATH_MAX]; if (!dbus_connection_add_filter(conn, service_filter, service, NULL)) { error("Unable to add signal filter"); @@ -456,13 +456,7 @@ int service_start(struct service *service, DBusConnection *conn) argv[0] = command; argv[1] = NULL; - addr = get_local_server_address(); - - snprintf(address, sizeof(address) - 1, "BLUETOOTHD_ADDRESS=%s", addr); - envp[0] = address; - envp[1] = NULL; - - dbus_free(addr); + envp[0] = NULL; if (!g_spawn_async(SERVICEDIR, argv, envp, G_SPAWN_DO_NOT_REAP_CHILD, service_setup, service, &service->pid, NULL)) { -- cgit