summaryrefslogtreecommitdiff
path: root/bus/test-launch-helper.c
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 /bus/test-launch-helper.c
parent30fa2e1ace062314e9624b29239c2c7e9519e6c2 (diff)
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 'bus/test-launch-helper.c')
-rw-r--r--bus/test-launch-helper.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bus/test-launch-helper.c b/bus/test-launch-helper.c
index e88c989c8..e9ba412ac 100644
--- a/bus/test-launch-helper.c
+++ b/bus/test-launch-helper.c
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <dbus/dbus-internals.h>
+#include <dbus/dbus-misc.h>
#ifdef DBUS_ENABLE_EMBEDDED_TESTS
static void
@@ -122,8 +123,8 @@ main (int argc, char **argv)
return 1;
/* use a config file that will actually work... */
- _dbus_setenv ("TEST_LAUNCH_HELPER_CONFIG",
- _dbus_string_get_const_data (&config_file));
+ dbus_setenv ("TEST_LAUNCH_HELPER_CONFIG",
+ _dbus_string_get_const_data (&config_file));
_dbus_string_free (&config_file);