diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-01-04 20:29:24 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-01-04 20:29:24 +0100 |
commit | 085569df55ceb3737b79f53b015b0c064698ddc6 (patch) | |
tree | 3b8eb6f761f044deffdcf2f3ed435584a5e9b671 /src/common | |
parent | 21b020b33633683d7c785af15c773aab0f79d0de (diff) |
fix large amount of compiler warnings in common and sysmobts code
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/bts_ctrl_lookup.c | 1 | ||||
-rw-r--r-- | src/common/l1sap.c | 1 | ||||
-rw-r--r-- | src/common/msg_utils.c | 6 | ||||
-rw-r--r-- | src/common/rsl.c | 1 | ||||
-rw-r--r-- | src/common/vty.c | 4 |
5 files changed, 9 insertions, 4 deletions
diff --git a/src/common/bts_ctrl_lookup.c b/src/common/bts_ctrl_lookup.c index e6937180..3857ec39 100644 --- a/src/common/bts_ctrl_lookup.c +++ b/src/common/bts_ctrl_lookup.c @@ -26,6 +26,7 @@ #include <osmocom/ctrl/ports.h> #include <osmo-bts/logging.h> #include <osmo-bts/gsm_data.h> +#include <osmo-bts/control_if.h> extern vector ctrl_node_vec; diff --git a/src/common/l1sap.c b/src/common/l1sap.c index e6c361e6..56eaa668 100644 --- a/src/common/l1sap.c +++ b/src/common/l1sap.c @@ -45,6 +45,7 @@ #include <osmo-bts/rsl.h> #include <osmo-bts/bts_model.h> #include <osmo-bts/handover.h> +#include <osmo-bts/power_control.h> static struct gsm_lchan * get_lchan_by_chan_nr(struct gsm_bts_trx *trx, unsigned int chan_nr) diff --git a/src/common/msg_utils.c b/src/common/msg_utils.c index 22a3012a..841ffe61 100644 --- a/src/common/msg_utils.c +++ b/src/common/msg_utils.c @@ -96,7 +96,7 @@ int msg_verify_ipa_structure(struct msgb *msg) if (msgb_l1len(msg) < sizeof(struct ipaccess_head)) { LOGP(DL1C, LOGL_ERROR, - "Ipa header insufficient space %d %d\n", + "Ipa header insufficient space %d %zu\n", msgb_l1len(msg), sizeof(struct ipaccess_head)); return -1; } @@ -105,7 +105,7 @@ int msg_verify_ipa_structure(struct msgb *msg) if (ntohs(hh->len) != msgb_l1len(msg) - sizeof(struct ipaccess_head)) { LOGP(DL1C, LOGL_ERROR, - "Incorrect ipa header msg size %d %d\n", + "Incorrect ipa header msg size %d %zu\n", ntohs(hh->len), msgb_l1len(msg) - sizeof(struct ipaccess_head)); return -1; } @@ -142,7 +142,7 @@ int msg_verify_oml_structure(struct msgb *msg) struct abis_om_hdr *omh; if (msgb_l2len(msg) < sizeof(*omh)) { - LOGP(DL1C, LOGL_ERROR, "Om header insufficient space %d %d\n", + LOGP(DL1C, LOGL_ERROR, "Om header insufficient space %d %zu\n", msgb_l2len(msg), sizeof(*omh)); return -1; } diff --git a/src/common/rsl.c b/src/common/rsl.c index 03509eda..a503355d 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -47,6 +47,7 @@ #include <osmo-bts/handover.h> #include <osmo-bts/cbch.h> #include <osmo-bts/l1sap.h> +#include <osmo-bts/bts_model.h> //#define FAKE_CIPH_MODE_COMPL diff --git a/src/common/vty.c b/src/common/vty.c index a67ffe1d..ae8125cc 100644 --- a/src/common/vty.c +++ b/src/common/vty.c @@ -49,7 +49,7 @@ #include <osmo-bts/vty.h> #include <osmo-bts/l1sap.h> -enum node_type bts_vty_go_parent(struct vty *vty) +int bts_vty_go_parent(struct vty *vty) { switch (vty->node) { case TRX_NODE: @@ -814,6 +814,8 @@ int bts_vty_init(struct gsm_bts *bts, const struct log_info *cat) install_element(TRX_NODE, &cfg_trx_ms_power_control_cmd); install_element(ENABLE_NODE, &bts_t_t_l_jitter_buf_cmd); + install_element(ENABLE_NODE, &bts_t_t_l_loopback_cmd); + install_element(ENABLE_NODE, &no_bts_t_t_l_loopback_cmd); return 0; } |