summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorAlban Crequy <alban.crequy@collabora.co.uk>2014-07-24 08:04:48 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-09-04 15:42:45 +0100
commite2a78c0951212a4f22f95cffe29aa96e11120050 (patch)
treec30793cbe0330978534ef0454c33900fd6aa3ff5 /bus
parent8f31484171dbffea56600daf6b6be407bd79d759 (diff)
downloaddbus-e2a78c0951212a4f22f95cffe29aa96e11120050.tar.gz
Stats: fix compilation issue
Bug-Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=507232 Bug: https://bugs.freedesktop.org/show_bug.cgi?id=81043 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus')
-rw-r--r--bus/stats.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bus/stats.c b/bus/stats.c
index 2bf86d66..24308eb5 100644
--- a/bus/stats.c
+++ b/bus/stats.c
@@ -40,6 +40,7 @@ bus_stats_handle_get_stats (DBusConnection *connection,
DBusMessage *message,
DBusError *error)
{
+ BusContext *context;
BusConnections *connections;
DBusMessage *reply = NULL;
DBusMessageIter iter, arr_iter;
@@ -48,7 +49,8 @@ bus_stats_handle_get_stats (DBusConnection *connection,
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
- connections = bus_context_get_connections (transaction->context);
+ context = bus_transaction_get_context (transaction);
+ connections = bus_context_get_connections (context);
reply = _dbus_asv_new_method_return (message, &iter, &arr_iter);