This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has submitted this change. ( https://gerrit.osmocom.org/c/osmo-pcu/+/16985 ) Change subject: cosmetic: csn1.cpp: Fix whitespace ...................................................................... cosmetic: csn1.cpp: Fix whitespace Change-Id: I663c5c20a878b3643db6a8ddd58e29bc9fe93d80 --- M src/csn1.cpp 1 file changed, 7 insertions(+), 8 deletions(-) Approvals: neels: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/csn1.cpp b/src/csn1.cpp index f248b95..1a3a530 100644 --- a/src/csn1.cpp +++ b/src/csn1.cpp @@ -69,7 +69,7 @@ result &= maskBits[no_of_bits]; } else - { + { guint8 hight_part = (0x2B ^ ((guint8)bitvec_read_field(vector, &readIndex, 8))) & maskBits[8 - relative_bit_offset]; hight_part = (guint8) (hight_part << (-bit_shift)); result = (0x2B ^ ((guint8)bitvec_read_field(vector, &readIndex, 8))) >> (8 + bit_shift); @@ -613,7 +613,7 @@ /* Assign UnionType */ pui8 = pui8DATA(data, pDescr->offset); *pui8 = index; - + /* script index to continue on, limited in case we do not have a power of 2 */ pDescr += (MIN(index + 1, count)); @@ -1128,7 +1128,7 @@ no_of_bits -= 8; } if (no_of_bits > 0) - { + { *pui8 = bitvec_read_field(vector, &readIndex, no_of_bits); LOGPC(DCSN1, LOGL_NOTICE, "%s = %u | ", pDescr->sz , (unsigned)*pui8); pui8++; @@ -1339,7 +1339,7 @@ ElementCount++; LOGPC(DCSN1, LOGL_NOTICE, "%s { | ", pDescr->sz); - + csnStreamInit(&arT, bit_offset, remaining_bits_len); Status = csnStreamDecoder(&arT, (const CSN_DESCR*)pDescr->descr.ptr, vector, readIndex, pui8); @@ -1827,7 +1827,7 @@ } else { - // Has already been processed: + // Has already been processed: return Status; } @@ -1857,9 +1857,9 @@ //read index from data and write to vector bitvec_write_field(vector, &writeIndex, *pui8, Bits); - //decode index + //decode index writeIndex -= Bits; - + while (Bits > 0) { index <<= 1; @@ -2669,4 +2669,3 @@ return ProcessError(writeIndex,"csnStreamEncoder", CSN_ERROR_NEED_MORE_BITS_TO_UNPACK, pDescr); } - -- To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/16985 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-pcu Gerrit-Branch: master Gerrit-Change-Id: I663c5c20a878b3643db6a8ddd58e29bc9fe93d80 Gerrit-Change-Number: 16985 Gerrit-PatchSet: 2 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: neels <nhofmeyr at sysmocom.de> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200203/7e52094c/attachment.htm>