From d7ba15373753c9ec42887529b929304aa223718e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 3 Sep 2013 22:58:59 -0500 Subject: smsutil: Make sure to return 1/0 So the value might be used directly for D-Bus property emission. Otherwise D-Bus asserts and screws itself with: ofonod[7427]: src/sms.c:handle_mwi() process 7427: arguments to dbus_message_iter_append_basic() were incorrect, assertion "*bool_p == 0 || *bool_p == 1" failed in file ../../dbus/dbus-message.c line 2549. --- src/smsutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/smsutil.c') diff --git a/src/smsutil.c b/src/smsutil.c index 22d0ea9e..be60ee95 100644 --- a/src/smsutil.c +++ b/src/smsutil.c @@ -240,7 +240,7 @@ gboolean sms_mwi_dcs_decode(guint8 dcs, enum sms_mwi_type *type, else ch = SMS_CHARSET_7BIT; - act = dcs & 0x8; + act = (dcs & 0x8) ? TRUE : FALSE; t = (enum sms_mwi_type) (dcs & 0x3); -- cgit v1.2.3