Change in osmo-pcu[master]: cosmetic: csn1.cpp: Fix whitespace

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.org
Thu Jan 23 18:05:25 UTC 2020


pespin has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/85/16985/1

diff --git a/src/csn1.cpp b/src/csn1.cpp
index 6203a44..3a8a81b 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);
@@ -605,7 +605,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));
@@ -1119,7 +1119,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++;
@@ -1329,7 +1329,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);
 
@@ -1818,7 +1818,7 @@
         }
         else
         {
-          // Has already been processed: 
+          // Has already been processed:
           return Status;
         }
 
@@ -1848,9 +1848,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;
@@ -2666,4 +2666,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: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200123/dea7942c/attachment.htm>


More information about the gerrit-log mailing list