summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaurav Babu <saurav.babu@samsung.com>2017-04-24 08:37:02 (GMT)
committerSaurav Babu <saurav.babu@samsung.com>2017-04-24 08:38:09 (GMT)
commit7ac2bbaa4d7c87aa8f176b5f7f9b445b09abeb44 (patch)
treed9368feb20026c77c70ca1045e0bdf98fd971e98
parent84b7a8fe9d04a0f928fc33dc2817c8f5386a524f (diff)
downloadconnman-7ac2bbaa4d7c87aa8f176b5f7f9b445b09abeb44.zip
connman-7ac2bbaa4d7c87aa8f176b5f7f9b445b09abeb44.tar.gz
connman-7ac2bbaa4d7c87aa8f176b5f7f9b445b09abeb44.tar.bz2
service: Use correct DBUS data type to pack disconnect reasonrefs/changes/99/126599/1
disconnect_reason can have negative values, so we should use DBUS_TYPE_INT32 instead of DBUS_TYPE_UINT32 to pack. Change-Id: Ia4cc303741461da5b8d42493779b8623a0482a33 Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
-rwxr-xr-xsrc/service.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/service.c b/src/service.c
index 772c89f..6e99979 100755
--- a/src/service.c
+++ b/src/service.c
@@ -3269,7 +3269,7 @@ static void append_properties(DBusMessageIter *dict, dbus_bool_t limited,
append_ethernet, service);
connman_dbus_dict_append_basic(dict, "DisconnectReason",
- DBUS_TYPE_UINT32, &service->disconnect_reason);
+ DBUS_TYPE_INT32, &service->disconnect_reason);
break;
#endif