summaryrefslogtreecommitdiff
path: root/bus
diff options
context:
space:
mode:
authorChengwei Yang <chengwei.yang@intel.com>2013-07-19 10:04:40 +0800
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-08-22 18:17:49 +0100
commit46af309cf5e3f4a0a8c773461b65a7bacb9e87e0 (patch)
treea2b0e5c0efc75ffcd3a212b73bb1b5948429257e /bus
parenteca135456b5a8f695fdcd31769cdd475885236f5 (diff)
downloaddbus-46af309cf5e3f4a0a8c773461b65a7bacb9e87e0.tar.gz
Fix build with "--enable-stats"
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=54445 Signed-off-by: Chengwei Yang <chengwei.yang@intel.com> Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to 'bus')
-rw-r--r--bus/stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/stats.c b/bus/stats.c
index 0c71a549..ec768ec7 100644
--- a/bus/stats.c
+++ b/bus/stats.c
@@ -165,7 +165,7 @@ bus_stats_handle_get_connection_stats (DBusConnection *caller_connection,
bus_connection_get_n_services_owned (stats_connection)) ||
!_dbus_asv_add_uint32 (&arr_iter, "PeakBusNames",
bus_connection_get_peak_bus_names (stats_connection)) ||
- !_dbus_asv_add_uint32 (&arr_iter, "UniqueName",
+ !_dbus_asv_add_string (&arr_iter, "UniqueName",
bus_connection_get_name (stats_connection)))
{
_dbus_asv_abandon (&iter, &arr_iter);