diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2022-10-05 10:12:49 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2022-10-06 07:52:09 +0000 |
commit | 724c1625e28a58f73a2baa1554ff034b257bc386 (patch) | |
tree | bd4578d3d5eec98756100b4a460b0b2542e0d8fd /include/osmocom/core | |
parent | d9d62102cc41533a5062d29f4abd4b272d71840f (diff) |
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
Diffstat (limited to 'include/osmocom/core')
-rw-r--r-- | include/osmocom/core/msgb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/osmocom/core/msgb.h b/include/osmocom/core/msgb.h index fbf1742e..1e2b0237 100644 --- a/include/osmocom/core/msgb.h +++ b/include/osmocom/core/msgb.h @@ -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 |