aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-03-26 19:50:50 +0100
committerlaforge <laforge@osmocom.org>2020-03-30 10:08:02 +0000
commit70a211747bf35084604edb6dce826cd178367920 (patch)
treea19911c2737c011f092bb6511068ed1ed9722e03
parent99eb353337f16f9023e3e64e6fd1a5210f289db8 (diff)
csn1: Fix Several typos & whitespace
-rw-r--r--src/csn1.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/csn1.c b/src/csn1.c
index 36b6882..1b3cc55 100644
--- a/src/csn1.c
+++ b/src/csn1.c
@@ -51,7 +51,6 @@ static const unsigned char ixBitsTab[] = {0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 4, 4, 4,
/* Returns no_of_bits (up to 8) masked with 0x2B */
-
static guint8
get_masked_bits8(struct bitvec *vector, unsigned *readIndex, gint bit_offset, const gint no_of_bits)
{
@@ -1144,7 +1143,7 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec *vector
no_of_bits -= 8;
}
if (no_of_bits > 0)
- {
+ {
*pui8 = bitvec_read_field(vector, readIndex, no_of_bits);
LOGPC(DCSN1, LOGL_DEBUG, "%s = %u | ", pDescr->sz , (unsigned)*pui8);
pui8++;
@@ -1183,7 +1182,7 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec *vector
}
if (remaining_bits_len < 0)
{
- return ProcessError(readIndex,"csnStreamDissector", CSN_ERROR_NEED_MORE_BITS_TO_UNPACK, pDescr);
+ return ProcessError(readIndex,"csnStreamDecoder", CSN_ERROR_NEED_MORE_BITS_TO_UNPACK, pDescr);
}
/* Padding was successfully extracted or it was empty */
@@ -2463,7 +2462,7 @@ gint16 csnStreamEncoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec
}
if (remaining_bits_len < 0)
{
- return ProcessError(writeIndex,"csnStreamDissector", CSN_ERROR_NEED_MORE_BITS_TO_UNPACK, pDescr);
+ return ProcessError(writeIndex,"csnStreamEncoder", CSN_ERROR_NEED_MORE_BITS_TO_UNPACK, pDescr);
}
/* Padding was successfully extracted or it was empty */