aboutsummaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-09-19 20:46:51 +0200
committerHarald Welte <laforge@gnumonks.org>2011-09-19 20:46:51 +0200
commitc373448e03f12f8f7e5da1d894d63d7bc79eef4a (patch)
tree6bda0129c64c4ef49c450355783703dc633cfb52 /src/common
parent7899dc5fcfa49febd50cb113cc8ef45f32dacc9d (diff)
fix various compiler warnings across the code
this deals with unused cocde, unused variables and undeclared symbols in various places.
Diffstat (limited to 'src/common')
-rw-r--r--src/common/bts.c30
-rw-r--r--src/common/rsl.c1
-rw-r--r--src/common/vty.c2
3 files changed, 2 insertions, 31 deletions
diff --git a/src/common/bts.c b/src/common/bts.c
index 88b118f6..b228341d 100644
--- a/src/common/bts.c
+++ b/src/common/bts.c
@@ -389,36 +389,6 @@ int trx_link_estab(struct gsm_bts_trx *trx)
return 0;
}
-void bts_new_si(void *arg)
-{
- struct osmobts_trx *trx = arg;
-
-#if 0
- if (osmo_timer_pending(&trx->si.timer))
- return;
-
- i = 0;
- while(i < BTS_SI_NUM) {
- if ((trx->si.flags[i] & BTS_SI_NEW))
- break;
- i++;
- }
- if (i == BTS_SI_NUM)
- return;
- if ((trx->si.flags[i] & BTS_SI_USE))
- LOGP(DSUM, LOGL_INFO, "Setting SYSTEM INFORMATION %s.\n", bts_si_name[i]);
- else
- LOGP(DSUM, LOGL_INFO, "Removing SYSTEM INFORMATION %s.\n", bts_si_name[i]);
- trx->si.flags[i] &= ~BTS_SI_NEW;
- /* distribute */
- printf("TODO: send SI update to L1\n");
- /* delay until next SI */
- trx->si.timer.cb = bts_new_si;
- trx->si.timer.data = trx;
- osmo_timer_schedule(&trx->si.timer, 0, 200000);
-#endif
-}
-
int lchan_init_lapdm(struct gsm_lchan *lchan)
{
struct lapdm_channel *lc = &lchan->lapdm_ch;
diff --git a/src/common/rsl.c b/src/common/rsl.c
index 9dee4f75..6c334497 100644
--- a/src/common/rsl.c
+++ b/src/common/rsl.c
@@ -1280,7 +1280,6 @@ static int rsl_rx_ipac_XXcx(struct msgb *msg)
static int rsl_rx_ipac_dlcx(struct msgb *msg)
{
- struct abis_rsl_dchan_hdr *dch = msgb_l2(msg);
struct tlv_parsed tp;
struct gsm_lchan *lchan = msg->lchan;
int rc, inc_conn_id = 0;
diff --git a/src/common/vty.c b/src/common/vty.c
index b8fea042..741899c5 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -419,4 +419,6 @@ int bts_vty_init(const struct log_info *cat)
install_element(BTS_NODE, &cfg_no_description_cmd);
install_element(ENABLE_NODE, &bts_t_t_l_jitter_buf_cmd);
+
+ return 0;
}