mirror of https://gerrit.osmocom.org/libosmocore
gsm/tlv.h: fix copy-paste error
Change-Id: Id52ddd8358fd4af1ecc71142deb09f1e237021f3
This commit is contained in:
parent
35b54d12bb
commit
ac9e2d8aa5
|
@ -68,9 +68,9 @@ static inline uint16_t VTVLV_GAN_GROSS_LEN(uint16_t tag, uint16_t len)
|
||||||
uint16_t ret;
|
uint16_t ret;
|
||||||
|
|
||||||
if (len <= TVLV_MAX_ONEBYTE)
|
if (len <= TVLV_MAX_ONEBYTE)
|
||||||
return TLV_GROSS_LEN(len);
|
ret = TLV_GROSS_LEN(len);
|
||||||
else
|
else
|
||||||
return TL16V_GROSS_LEN(len);
|
ret = TL16V_GROSS_LEN(len);
|
||||||
|
|
||||||
if (tag > TVLV_MAX_ONEBYTE)
|
if (tag > TVLV_MAX_ONEBYTE)
|
||||||
ret += 1;
|
ret += 1;
|
||||||
|
|
Loading…
Reference in New Issue