mirror of https://gerrit.osmocom.org/libosmocore
msgb: do not use msgb_l4 instead of msgb_sms
The macro msgb_sms() is basically an alias for msgb_l4(). Lets use msgb_l4() in msgb_l4len() instead of msgb_sms(). Change-Id: I90d4f5c07fbaadd9e022752a2c64c4855f0b4227
This commit is contained in:
parent
d9d62102cc
commit
724c1625e2
|
@ -184,7 +184,7 @@ static inline unsigned int msgb_l3len(const struct msgb *msgb)
|
|||
static inline unsigned int msgb_l4len(const struct msgb *msgb)
|
||||
{
|
||||
OSMO_ASSERT(msgb->l4h);
|
||||
return msgb->tail - (uint8_t *)msgb_sms(msgb);
|
||||
return msgb->tail - (uint8_t *)msgb_l4(msgb);
|
||||
}
|
||||
|
||||
/*! determine the length of the header
|
||||
|
|
Loading…
Reference in New Issue