summaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-01-22 13:09:35 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-01-22 13:09:35 +0000
commitaf43115ad952518c6124c9f2e2c48f87b164e97f (patch)
tree7499d40bb55c088a74c8fe53419f9b6bfe2c39d6 /audio
parent10ee2488a526d269d9f50f2737a7401a11881f2c (diff)
Fix coding style
Diffstat (limited to 'audio')
-rw-r--r--audio/headset.c25
1 files changed, 11 insertions, 14 deletions
diff --git a/audio/headset.c b/audio/headset.c
index a1626d4e..2b343d0d 100644
--- a/audio/headset.c
+++ b/audio/headset.c
@@ -286,10 +286,7 @@ static int cli_notification(struct device *device, const char *buf)
{
struct headset *hs = device->headset;
- if (buf[8] == '1')
- hs->cli_active = TRUE;
- else
- hs->cli_active = FALSE;
+ hs->cli_active = buf[8] == '1' ? TRUE : FALSE;
return headset_send(hs, "\r\nOK\r\n");
}
@@ -340,16 +337,16 @@ ok:
}
static struct event event_callbacks[] = {
- {"ATA", answer_call},
- {"AT+VG", signal_gain_setting},
- {"AT+BRSF", supported_features},
- {"AT+CIND", report_indicators},
- {"AT+CMER", event_reporting},
- {"AT+CHLD", call_hold},
- {"AT+CHUP", terminate_call},
- {"AT+CKPD", answer_call},
- {"AT+CLIP", cli_notification},
- {0}
+ { "ATA", answer_call },
+ { "AT+VG", signal_gain_setting },
+ { "AT+BRSF", supported_features },
+ { "AT+CIND", report_indicators },
+ { "AT+CMER", event_reporting },
+ { "AT+CHLD", call_hold },
+ { "AT+CHUP", terminate_call },
+ { "AT+CKPD", answer_call },
+ { "AT+CLIP", cli_notification },
+ { 0 }
};
static GIOError handle_event(struct device *device, const char *buf)