convert away from deprecated gsm_7bit_{encode,decode}() functions
which removes yet another bunch of compiler warnings.
This commit is contained in:
parent
7b1d25a11e
commit
5468f76861
|
@ -720,7 +720,7 @@ int gsm48_tx_mm_info(struct gsm_subscriber_connection *conn)
|
|||
ptr8[2] = 0x80 | name_pad; /* Cell Broadcast DCS, no CI */
|
||||
|
||||
ptr8 = msgb_put(msg, name_len);
|
||||
gsm_7bit_encode(ptr8, net->name_long);
|
||||
gsm_7bit_encode_n(ptr8, name_len, net->name_long, NULL);
|
||||
|
||||
}
|
||||
|
||||
|
@ -748,7 +748,7 @@ int gsm48_tx_mm_info(struct gsm_subscriber_connection *conn)
|
|||
ptr8[2] = 0x80 | name_pad; /* Cell Broadcast DCS, no CI */
|
||||
|
||||
ptr8 = msgb_put(msg, name_len);
|
||||
gsm_7bit_encode(ptr8, net->name_short);
|
||||
gsm_7bit_encode_n(ptr8, name_len, net->name_short, NULL);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -366,7 +366,8 @@ static int gsm340_rx_tpdu(struct gsm_subscriber_connection *conn, struct msgb *m
|
|||
|
||||
switch (sms_alphabet) {
|
||||
case DCS_7BIT_DEFAULT:
|
||||
gsm_7bit_decode(gsms->text, smsp, gsms->user_data_len);
|
||||
gsm_7bit_decode_n(gsms->text, sizeof(gsms->text), smsp,
|
||||
gsms->user_data_len);
|
||||
break;
|
||||
case DCS_8BIT_DATA:
|
||||
case DCS_UCS2:
|
||||
|
|
Loading…
Reference in New Issue