[PATCH 4/5] sms-part-3gpp: minor coding style fixes
Aleksander Morgado
aleksander at aleksander.es
Fri Jul 14 09:00:55 UTC 2017
On 14/07/17 10:06, Ben Chan wrote:
> ---
> src/mm-sms-part-3gpp.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
Pushed to git master, thanks.
> diff --git a/src/mm-sms-part-3gpp.c b/src/mm-sms-part-3gpp.c
> index b305be59..3f4d6c06 100644
> --- a/src/mm-sms-part-3gpp.c
> +++ b/src/mm-sms-part-3gpp.c
> @@ -135,7 +135,7 @@ sms_decode_address (const guint8 *address, int len)
> unpacked = gsm_unpack (address, (len * 4) / 7, 0, &unpacked_len);
> utf8 = (char *)mm_charset_gsm_unpacked_to_utf8 (unpacked,
> unpacked_len);
> - g_free(unpacked);
> + g_free (unpacked);
> } else if (addrtype == SMS_NUMBER_TYPE_INTL &&
> addrplan == SMS_NUMBER_PLAN_TELEPHONE) {
> /* International telphone number, format as "+1234567890" */
> @@ -523,7 +523,7 @@ mm_sms_part_3gpp_new_from_binary_pdu (guint index,
> break;
> default:
> /* Cannot happen as we AND with the 0x18 mask */
> - g_assert_not_reached();
> + g_assert_not_reached ();
> }
> }
>
> @@ -580,7 +580,7 @@ mm_sms_part_3gpp_new_from_binary_pdu (guint index,
> PDU_SIZE_CHECK (tp_dcs_offset + 1, "cannot read TP-DCS");
>
> /* Encoding given in the 'alphabet' bits */
> - user_data_encoding = sms_encoding_type(pdu[tp_dcs_offset]);
> + user_data_encoding = sms_encoding_type (pdu[tp_dcs_offset]);
> switch (user_data_encoding) {
> case MM_SMS_ENCODING_GSM7:
> mm_dbg (" user data encoding is GSM7");
>
--
Aleksander
https://aleksander.es
More information about the ModemManager-devel
mailing list