diff options
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-08 17:07:40 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2017-02-08 17:37:55 +0100 |
commit | d34646a865364fa51213e0da406aeea2ab7d944b (patch) | |
tree | 65a5cc0c1efe00d4b4af66b2bad11e25f0850f16 /src | |
parent | 53f0b4deb6026b0c83a10d6a915a3a0c2e7caaf5 (diff) |
Fix dozens of compiler warnings across the board
Change-Id: I166109dc05d3323b92cd2a42f0c7e6009950e15d
Diffstat (limited to 'src')
-rw-r--r-- | src/pcu_vty.c | 1 | ||||
-rw-r--r-- | src/tbf.cpp | 8 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/pcu_vty.c b/src/pcu_vty.c index 535d512b..3b5996c8 100644 --- a/src/pcu_vty.c +++ b/src/pcu_vty.c @@ -3,6 +3,7 @@ #include <stdint.h> #include <stdlib.h> +#include <string.h> #include <osmocom/vty/logging.h> #include <osmocom/vty/stats.h> #include <osmocom/vty/misc.h> diff --git a/src/tbf.cpp b/src/tbf.cpp index 0d28c5c1..820131c7 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp @@ -171,13 +171,13 @@ gprs_rlcmac_tbf::gprs_rlcmac_tbf(BTS *bts_, gprs_rlcmac_tbf_direction dir) : bts(bts_), m_tfi(0), m_created_ts(0), + m_ctrs(NULL), m_ms(NULL), m_ta(GSM48_TA_INVALID), m_ms_class(0), m_list(this), m_ms_list(this), - m_egprs_enabled(false), - m_ctrs(NULL) + m_egprs_enabled(false) { /* The classes of these members do not have proper constructors yet. * Just set them to 0 like talloc_zero did */ @@ -854,9 +854,9 @@ struct gprs_rlcmac_ul_tbf *tbf_alloc_ul_tbf(struct gprs_rlcmac_bts *bts, gprs_rlcmac_dl_tbf::BandWidth::BandWidth() : dl_bw_octets(0), + dl_throughput(0), dl_loss_lost(0), - dl_loss_received(0), - dl_throughput(0) + dl_loss_received(0) { timerclear(&dl_bw_tv); timerclear(&dl_loss_tv); |