From d3560b3784ac9bbe57bdbe0cc86e64b9a87b0ce0 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Fri, 31 Jan 2014 15:14:08 -0600 Subject: handsfree: Be extra pedantic with booleans --- src/handsfree.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/handsfree.c b/src/handsfree.c index 49eef679..30ab7022 100644 --- a/src/handsfree.c +++ b/src/handsfree.c @@ -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) -- cgit v1.2.3