aboutsummaryrefslogtreecommitdiffstats
path: root/src/bs11_config.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-02-21 12:59:58 +0000
committerHarald Welte <laforge@gnumonks.org>2009-02-21 12:59:58 +0000
commit099d6100e6ff83404b8140ee3bba39b62a5717cd (patch)
tree261f84376dc89f075cbceedaffc727f84540492d /src/bs11_config.c
parent7bc4cbc45c81108beeeefce9f80fc18bc87726a4 (diff)
fix various compiler warnings while building bs11_config
Diffstat (limited to 'src/bs11_config.c')
-rw-r--r--src/bs11_config.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/bs11_config.c b/src/bs11_config.c
index 1e980c94f..9fadc45c9 100644
--- a/src/bs11_config.c
+++ b/src/bs11_config.c
@@ -40,6 +40,7 @@
#include <openbsc/tlv.h>
#include <openbsc/debug.h>
#include <openbsc/select.h>
+#include <openbsc/rs232.h>
/* state of our bs11_config application */
enum bs11cfg_state {
@@ -76,9 +77,6 @@ int handle_serial_msg(struct msgb *rx_msg);
/* create all objects for an initial configuration */
static int create_objects(struct gsm_bts *bts)
{
- u_int8_t bbsig1_attr[sizeof(obj_bbsig0_attr)+12];
- u_int8_t *cur = bbsig1_attr;
-
fprintf(stdout, "Crating Objects for minimal config\n");
abis_nm_bs11_create_object(bts, BS11_OBJ_LI, 0, sizeof(obj_li_attr),
obj_li_attr);
@@ -343,11 +341,6 @@ static void print_state(struct tlv_parsed *tp)
printf("\n");
}
-static char *print_bcd(u_int8_t *bcd, int len)
-{
- return "FIXME";
-}
-
static int print_attr(struct tlv_parsed *tp)
{
if (TLVP_PRESENT(tp, NM_ATT_BS11_ESN_PCB_SERIAL)) {
@@ -370,7 +363,8 @@ static int print_attr(struct tlv_parsed *tp)
#endif
if (TLVP_PRESENT(tp, NM_ATT_ABIS_CHANNEL) &&
TLVP_LEN(tp, NM_ATT_ABIS_CHANNEL) >= 3) {
- struct abis_nm_channel *chan = TLVP_VAL(tp, NM_ATT_ABIS_CHANNEL)-1;
+ struct abis_nm_channel *chan =
+ (struct abis_nm_channel*) TLVP_VAL(tp, NM_ATT_ABIS_CHANNEL)-1;
printf("\tE1 Channel: Port=%u Timeslot=%u ",
chan->bts_port, chan->timeslot);
if (chan->subslot == 0xff)