summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-06-05 19:58:22 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-08-23 11:40:50 +0100
commit412538b3b9fb424c3af313815c3928a9ec221ad7 (patch)
treee459e1ced2ed8444a2a15f160e5ce239e20718bf /test
parent30fa2e1ace062314e9624b29239c2c7e9519e6c2 (diff)
downloaddbus-412538b3b9fb424c3af313815c3928a9ec221ad7.tar.gz
Export dbus_setenv() as a utility function
It's sufficiently portable that GLib has an equivalent, and I really don't want to have to either open-code it in dbus-run-session or link dbus-run-session statically. We have enough statically-linked rubbish already. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39196 Reviewed-by: Colin Walters <walters@verbum.org>
Diffstat (limited to 'test')
-rw-r--r--test/name-test/test-autolaunch.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/name-test/test-autolaunch.c b/test/name-test/test-autolaunch.c
index adbeb185..732e6dc7 100644
--- a/test/name-test/test-autolaunch.c
+++ b/test/name-test/test-autolaunch.c
@@ -8,7 +8,6 @@
#endif
#include <dbus/dbus.h>
-#include "dbus/dbus-sysdeps.h"
int
main (int argc, char *argv[])
@@ -16,7 +15,7 @@ main (int argc, char *argv[])
DBusConnection *conn = NULL;
DBusError error;
- _dbus_setenv ("DBUS_SESSION_BUS_ADDRESS", NULL);
+ dbus_setenv ("DBUS_SESSION_BUS_ADDRESS", NULL);
dbus_error_init (&error);