summaryrefslogtreecommitdiff
path: root/bus/stats.c
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-11-28 09:17:38 +0800
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-01-06 15:59:18 +0000
commit854554c3a67b880ac92fa72c476b772cb5968b26 (patch)
tree7183d4945a1f7ef833dde7303606efc5df1bb6d0 /bus/stats.c
parentb2a517040cd6f0fcc676abe833675d5473820226 (diff)
downloaddbus-854554c3a67b880ac92fa72c476b772cb5968b26.tar.gz
BusTransaction: remove confusing getter of connections
There is a DBusList* member of BusTransaction named "connections", while its getter function bus_transaction_get_connections() returns context->connections which in fact is a BusConnections pointer, this is quite confusing. Because this is what bus_context_get_connections() returns. This patch call out to bus_context_get_connections() directly and remove the then unused bus_transaction_get_connections(). https://bugs.freedesktop.org/show_bug.cgi?id=71597 Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus/stats.c')
-rw-r--r--bus/stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/stats.c b/bus/stats.c
index ec768ec7..2bf86d66 100644
--- a/bus/stats.c
+++ b/bus/stats.c
@@ -48,7 +48,7 @@ bus_stats_handle_get_stats (DBusConnection *connection,
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
- connections = bus_transaction_get_connections (transaction);
+ connections = bus_context_get_connections (transaction->context);
reply = _dbus_asv_new_method_return (message, &iter, &arr_iter);