Blob Blame History Raw
From 00ca5e70e755954c510cb4e2e42a8a5a52a071c0 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Thu, 17 Jul 2014 17:52:13 +0200
Subject: [PATCH] [Device] Fix ChildCount property type

It's a uint32, not a signed int.
---
 libdleyna/server/props.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libdleyna/server/props.c b/libdleyna/server/props.c
index fc26ec2..13e76b5 100644
--- a/libdleyna/server/props.c
+++ b/libdleyna/server/props.c
@@ -622,7 +622,7 @@ static void prv_add_variant_prop(GVariantBuilder *vb, const gchar *key,
 
 void dls_props_add_child_count(GVariantBuilder *item_vb, gint value)
 {
-	prv_add_int_prop(item_vb, DLS_INTERFACE_PROP_CHILD_COUNT, value);
+	prv_add_uint_prop(item_vb, DLS_INTERFACE_PROP_CHILD_COUNT, value);
 }
 
 static void prv_add_bool_prop(GVariantBuilder *vb, const gchar *key,
-- 
2.1.0