mirror of git://git.sysmocom.de/ofono
sms: Make PDU data arrays const
This commit is contained in:
parent
67c6a01d46
commit
2ead77e133
|
@ -60,9 +60,9 @@ struct ofono_sms_driver {
|
||||||
ofono_sms_bearer_set_cb_t, void *data);
|
ofono_sms_bearer_set_cb_t, void *data);
|
||||||
};
|
};
|
||||||
|
|
||||||
void ofono_sms_deliver_notify(struct ofono_sms *sms, unsigned char *pdu,
|
void ofono_sms_deliver_notify(struct ofono_sms *sms, const unsigned char *pdu,
|
||||||
int len, int tpdu_len);
|
int len, int tpdu_len);
|
||||||
void ofono_sms_status_notify(struct ofono_sms *sms, unsigned char *pdu,
|
void ofono_sms_status_notify(struct ofono_sms *sms, const unsigned char *pdu,
|
||||||
int len, int tpdu_len);
|
int len, int tpdu_len);
|
||||||
|
|
||||||
int ofono_sms_driver_register(const struct ofono_sms_driver *d);
|
int ofono_sms_driver_register(const struct ofono_sms_driver *d);
|
||||||
|
|
|
@ -1459,7 +1459,7 @@ static inline gboolean handle_mwi(struct ofono_sms *sms, struct sms *s)
|
||||||
return discard;
|
return discard;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ofono_sms_deliver_notify(struct ofono_sms *sms, unsigned char *pdu,
|
void ofono_sms_deliver_notify(struct ofono_sms *sms, const unsigned char *pdu,
|
||||||
int len, int tpdu_len)
|
int len, int tpdu_len)
|
||||||
{
|
{
|
||||||
struct ofono_modem *modem = __ofono_atom_get_modem(sms->atom);
|
struct ofono_modem *modem = __ofono_atom_get_modem(sms->atom);
|
||||||
|
@ -1606,7 +1606,7 @@ out:
|
||||||
handle_deliver(sms, &s);
|
handle_deliver(sms, &s);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ofono_sms_status_notify(struct ofono_sms *sms, unsigned char *pdu,
|
void ofono_sms_status_notify(struct ofono_sms *sms, const unsigned char *pdu,
|
||||||
int len, int tpdu_len)
|
int len, int tpdu_len)
|
||||||
{
|
{
|
||||||
struct sms s;
|
struct sms s;
|
||||||
|
|
Loading…
Reference in New Issue