handsfree: Be extra pedantic with booleans
authorDenis Kenzior <denkenz@gmail.com>
Fri, 31 Jan 2014 21:14:08 +0000 (15:14 -0600)
committerDenis Kenzior <denkenz@gmail.com>
Mon, 20 Oct 2014 18:40:28 +0000 (13:40 -0500)
src/handsfree.c

index 49eef679566e49656fbe9bd394dc990f9996bc17..30ab7022613388bfcbbd1bff86ac577c1e1eb232 100644 (file)
@@ -422,6 +422,11 @@ void ofono_handsfree_hf_indicator_active_notify(struct ofono_handsfree *hf,
 {
        DBG("%d, %d", indicator, active);
 
+       if (active)
+               active = TRUE;
+       else
+               active = FALSE;
+
        switch (indicator) {
        case HFP_HF_INDICATOR_ENHANCED_SAFETY:
                if (!hf->have_ddr)