aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.cpp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-12-28 13:46:32 +0100
committerJacob Erlbeck <jerlbeck@sysmocom.de>2016-02-01 13:58:12 +0100
commita3a567e7655b9842c9542d2ba5d1bf5237b46af0 (patch)
treecedb36d17426e418f6396a392f792cc4e2ebff74 /src/tbf.cpp
parente1ca87f0570674526e6586c697e06a1c83b8071b (diff)
rlc: Add constructor to window classes
Currently the gprs_rlc_dl_window and gprs_rlc_ul_window do not have constructors, but need to get initialized explicitly. This commit adds constructors to both classes and removes explicit external initialization code. Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.cpp')
-rw-r--r--src/tbf.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 556f6e83..fd0cd98f 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -587,7 +587,6 @@ gprs_rlcmac_ul_tbf::gprs_rlcmac_ul_tbf(BTS *bts_) :
m_contention_resolution_done(0),
m_final_ack_sent(0)
{
- memset(&m_window, 0, sizeof(m_window));
memset(&m_usf, 0, sizeof(m_usf));
}
@@ -650,7 +649,6 @@ gprs_rlcmac_dl_tbf::gprs_rlcmac_dl_tbf(BTS *bts_) :
m_last_dl_poll_fn(0),
m_last_dl_drained_fn(0)
{
- memset(&m_window, 0, sizeof(m_window));
memset(&m_llc_timer, 0, sizeof(m_llc_timer));
}