handsfree: Be extra pedantic with booleans

This commit is contained in:
Denis Kenzior 2014-01-31 15:14:08 -06:00
parent 017c1161d4
commit d3560b3784
1 changed files with 5 additions and 0 deletions

View 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)