[at-spi2-core] Cast to correct type when calling g_setenv
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Cast to correct type when calling g_setenv
- Date: Tue, 15 Oct 2013 22:42:02 +0000 (UTC)
commit ba19d69fd5de8ebf96cc6a9461b3f6d514820044
Author: Mike Gorse <mgorse suse com>
Date: Tue Oct 15 17:42:26 2013 -0500
Cast to correct type when calling g_setenv
bus/at-spi-bus-launcher.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index 63b5b28..59d9719 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -523,7 +523,7 @@ already_running ()
GDBusConnection *bus;
const gchar *old_session = g_getenv ("DBUS_SESSION_BUS_ADDRESS");
/* TODO: Is there a better way to connect? This is really hacky */
- g_setenv ("DBUS_SESSION_BUS_ADDRESS", data, TRUE);
+ g_setenv ("DBUS_SESSION_BUS_ADDRESS", (const gchar *)data, TRUE);
bus = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL);
g_setenv ("DBUS_SESSION_BUS_ADDRESS", old_session, TRUE);
if (bus != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]