summaryrefslogtreecommitdiffstats
path: root/src/coding
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2017-06-13 15:07:01 +0200
committerMax <msuraev@sysmocom.de>2017-06-19 11:09:09 +0200
commitdd75bacb781c8a902d4cade1ee4f1c5e9c72e8b0 (patch)
tree7e86b1fb529d1576251780d16ec3c24275ca3744 /src/coding
parent21be83794fb856f93e545ece7d60a451ea26bacc (diff)
Move NUM_BYTES macro to core library
It's universally useful so it make sense to have it in the shared core: * move macro from libosmocoding to libosmocore * add OSMO_ prefix * add doxygen docs Change-Id: I5386ba3e1f1cc153ba96c29dc71c9075a052aa02
Diffstat (limited to 'src/coding')
-rw-r--r--src/coding/gsm0503_coding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding/gsm0503_coding.c b/src/coding/gsm0503_coding.c
index 70398632..1e70d2eb 100644
--- a/src/coding/gsm0503_coding.c
+++ b/src/coding/gsm0503_coding.c
@@ -901,7 +901,7 @@ static int egprs_decode_data(uint8_t *l2_data, const sbit_t *c,
u, 0, data_len, 1);
/* Return the number of bytes required for the bit message */
- return NUM_BYTES(code->hdr_len + code->data_len);
+ return OSMO_BYTES_FOR_BITS(code->hdr_len + code->data_len);
}
/*! \brief Decode EGPRS UL message