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.
This commit is contained in:
Denis Kenzior 2013-09-03 22:58:59 -05:00
parent 0cdf3ced1f
commit d7ba153737
1 changed files with 1 additions and 1 deletions

View File

@ -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);