summaryrefslogtreecommitdiffstats
path: root/net.c
diff options
context:
space:
mode:
authorPaul Kocialkowski <contact@paulk.fr>2013-03-31 22:50:04 +0200
committerPaul Kocialkowski <contact@paulk.fr>2013-03-31 22:50:04 +0200
commit79ab28a95dbc9443b6c883c604a9a8f240b8a74c (patch)
tree61abae0b7f5ef387a6433c4b27d9800bf6749fac /net.c
parentab6eef687bc891e3e47edd43cee7e39336d30d26 (diff)
downloadhardware_ril_samsung-ril-79ab28a95dbc9443b6c883c604a9a8f240b8a74c.zip
hardware_ril_samsung-ril-79ab28a95dbc9443b6c883c604a9a8f240b8a74c.tar.gz
hardware_ril_samsung-ril-79ab28a95dbc9443b6c883c604a9a8f240b8a74c.tar.bz2
Coding style: add spaces after switch statements
Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
Diffstat (limited to 'net.c')
-rw-r--r--net.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/net.c b/net.c
index cb4774a..92a39fe 100644
--- a/net.c
+++ b/net.c
@@ -29,7 +29,7 @@
unsigned char ipc2ril_reg_state(unsigned char reg_state)
{
- switch(reg_state) {
+ switch (reg_state) {
case IPC_NET_REGISTRATION_STATE_NONE:
return 0;
case IPC_NET_REGISTRATION_STATE_HOME:
@@ -50,7 +50,7 @@ unsigned char ipc2ril_reg_state(unsigned char reg_state)
unsigned char ipc2ril_act(unsigned char act)
{
- switch(act) {
+ switch (act) {
case IPC_NET_ACCESS_TECHNOLOGY_GPRS:
return 1;
case IPC_NET_ACCESS_TECHNOLOGY_EDGE:
@@ -66,7 +66,7 @@ unsigned char ipc2ril_act(unsigned char act)
unsigned char ipc2ril_gprs_act(unsigned char act)
{
- switch(act) {
+ switch (act) {
case IPC_NET_ACCESS_TECHNOLOGY_GPRS:
return 1;
case IPC_NET_ACCESS_TECHNOLOGY_EDGE:
@@ -82,7 +82,7 @@ unsigned char ipc2ril_gprs_act(unsigned char act)
int ipc2ril_mode_sel(unsigned char mode)
{
- switch(mode) {
+ switch (mode) {
case 0:
return 7; // auto mode
case IPC_NET_MODE_SEL_GSM_UMTS:
@@ -98,7 +98,7 @@ int ipc2ril_mode_sel(unsigned char mode)
unsigned char ril2ipc_mode_sel(int mode)
{
- switch(mode) {
+ switch (mode) {
case 1: // GSM only
return IPC_NET_MODE_SEL_GSM_ONLY;
case 2: // WCDMA only
@@ -111,7 +111,7 @@ unsigned char ril2ipc_mode_sel(int mode)
int ipc2ril_plmn_sel(unsigned char mode)
{
- switch(mode) {
+ switch (mode) {
case IPC_NET_PLMN_SEL_MANUAL:
return 1;
case IPC_NET_PLMN_SEL_AUTO:
@@ -123,7 +123,7 @@ int ipc2ril_plmn_sel(unsigned char mode)
unsigned char ril2ipc_plmn_sel(int mode)
{
- switch(mode) {
+ switch (mode) {
case 0:
return IPC_NET_PLMN_SEL_AUTO;
case 1:
@@ -553,7 +553,7 @@ void ipc_net_regist_unsol(struct ipc_message_info *info)
LOGD("Got UNSOL NetRegist message");
- switch(netinfo->domain) {
+ switch (netinfo->domain) {
case IPC_NET_SERVICE_DOMAIN_GSM:
if (ril_data.tokens.registration_state != RIL_TOKEN_NULL && ril_data.tokens.registration_state != RIL_TOKEN_DATA_WAITING) {
LOGE("Another NetRegist Req is in progress, skipping");
@@ -625,7 +625,7 @@ void ipc_net_regist_sol(struct ipc_message_info *info)
LOGD("Got SOL NetRegist message");
- switch(netinfo->domain) {
+ switch (netinfo->domain) {
case IPC_NET_SERVICE_DOMAIN_GSM:
if (ril_data.tokens.registration_state != t)
LOGE("Registration state tokens mismatch");
@@ -686,7 +686,7 @@ void ipc_net_regist(struct ipc_message_info *info)
if (ril_data.state.power_state != IPC_PWR_PHONE_STATE_NORMAL)
return;
- switch(info->type) {
+ switch (info->type) {
case IPC_TYPE_NOTI:
ipc_net_regist_unsol(info);
break;