aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-06-16 21:53:03 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-07-11 00:27:15 +0200
commit243a20402141276e3bf983afde8b15cc5b5a000c (patch)
treed9b6c7ddad108ac78bd00fd962e97460f6cf4186
parent2d24eba903db365336dce56c29d6fbacf3b88112 (diff)
Encoding: write_packet_ack_nack_desc_egprs: don't use a reference for rest_bits
The rest_bits are never read after calling this function nor are rest_bits updated properly. Change-Id: Ic350b0365b125638a6c752f692bef981ad6b9d89
-rw-r--r--src/encoding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/encoding.cpp b/src/encoding.cpp
index a290c65..d253dac 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -830,7 +830,7 @@ static void write_packet_uplink_ack_gprs(
static void write_packet_ack_nack_desc_egprs(
bitvec * dest, unsigned& wp,
- gprs_rlc_ul_window *window, bool is_final, unsigned& rest_bits)
+ gprs_rlc_ul_window *window, bool is_final, unsigned rest_bits)
{
unsigned int urbb_len = 0;
uint8_t crbb_len = 0;