mirror of git://git.sysmocom.de/ofono
isimodem: fix style issues
This commit is contained in:
parent
a3f491a82b
commit
e130d21be9
|
@ -250,7 +250,7 @@ static void isi_registration(struct ofono_call_forwarding *cf, int type,
|
||||||
if (ucs2 == NULL)
|
if (ucs2 == NULL)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
memcpy((char *)msg + 13, ucs2, strlen(number->number) * 2);
|
memcpy((char *) &msg[13], ucs2, strlen(number->number) * 2);
|
||||||
g_free(ucs2);
|
g_free(ucs2);
|
||||||
|
|
||||||
if (g_isi_client_send(fd->client, msg, 7 + msg[8], SS_TIMEOUT,
|
if (g_isi_client_send(fd->client, msg, 7 + msg[8], SS_TIMEOUT,
|
||||||
|
|
|
@ -137,6 +137,7 @@ static gboolean check_sim_status(const GIsiMessage *msg, uint8_t msgid,
|
||||||
DBG("Request failed: %s", sim_isi_cause_name(cause));
|
DBG("Request failed: %s", sim_isi_cause_name(cause));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -221,6 +222,7 @@ static void sca_query_resp_cb(const GIsiMessage *msg, void *data)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
bcd_len = info->sca[0];
|
bcd_len = info->sca[0];
|
||||||
|
|
||||||
if (bcd_len == 0 || bcd_len > 12)
|
if (bcd_len == 0 || bcd_len > 12)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
@ -538,15 +540,18 @@ static gboolean parse_gsm_tpdu(GIsiSubBlockIter *parent, struct sms_addr *add,
|
||||||
|
|
||||||
if (add->type != SMS_GSM_0411_ADDRESS)
|
if (add->type != SMS_GSM_0411_ADDRESS)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SMS_COMMON_DATA:
|
case SMS_COMMON_DATA:
|
||||||
|
|
||||||
if (!parse_sms_tpdu(&iter, com))
|
if (!parse_sms_tpdu(&iter, com))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue