diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2015-12-28 13:46:32 +0100 |
---|---|---|
committer | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2016-02-01 13:58:12 +0100 |
commit | a3a567e7655b9842c9542d2ba5d1bf5237b46af0 (patch) | |
tree | cedb36d17426e418f6396a392f792cc4e2ebff74 /src/tbf.cpp | |
parent | e1ca87f0570674526e6586c697e06a1c83b8071b (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.cpp | 2 |
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)); } |