Type of uid is unsigned integer, but current code checks whether the uid type is signed integer.
By this behavior, the result from server is not received.
This patch changes the condition for checking dbus data type of uid from int32 to uint32.
By this change, the result is properly delivered to client application by the callback.
Change-Id: I0b0e75fcc5f4903dd5085fa208b21b0e5e30f530
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
dbus_message_iter_init(msg, &args);
/* Get result */
- if (DBUS_TYPE_INT32 == dbus_message_iter_get_arg_type(&args)) {
+ if (DBUS_TYPE_UINT32 == dbus_message_iter_get_arg_type(&args)) {
dbus_message_iter_get_basic(&args, &uid);
dbus_message_iter_next(&args);
}