[misc] Fix compile warnings...
diff --git a/src/bsc_hack.c b/src/bsc_hack.c
index c99159c..81ff7f0 100644
--- a/src/bsc_hack.c
+++ b/src/bsc_hack.c
@@ -428,6 +428,9 @@
break;
}
break;
+ case EVT_STATECHG_ADM:
+ DEBUGP(DMM, "Unhandled state change in %s:%d\n", __func__, __LINE__);
+ break;
}
return 0;
}
diff --git a/src/e1_config.c b/src/e1_config.c
index b150e1d..0aef19d 100644
--- a/src/e1_config.c
+++ b/src/e1_config.c
@@ -4,6 +4,7 @@
#include <openbsc/gsm_data.h>
#include <openbsc/e1_input.h>
#include <openbsc/trau_mux.h>
+#include <openbsc/misdn.h>
#define SAPI_L2ML 0
#define SAPI_OML 62
@@ -67,7 +68,7 @@
bts->trx[1].rsl_link = rsl_link;
#endif
- return mi_setup(0, line, NULL);
+ return mi_setup(0, line);
}
/* do some compiled-in configuration for our BTS/E1 setup */
diff --git a/src/e1_input.c b/src/e1_input.c
index cd23115..a319dcc 100644
--- a/src/e1_input.c
+++ b/src/e1_input.c
@@ -57,6 +57,9 @@
/* list of all E1 lines */
static LLIST_HEAD(line_list);
+/* to be implemented, e.g. by bsc_hack.c */
+void input_event(int event, enum e1inp_sign_type type, struct gsm_bts_trx *trx);
+
#if 0
/*
* pcap writing of the misdn load
@@ -430,7 +433,8 @@
return -EINVAL;
/* FIXME: report further upwards */
- return input_event(evt, link->type, link->trx);
+ input_event(evt, link->type, link->trx);
+ return 0;
}
/* register a driver with the E1 core */
diff --git a/src/input/ipaccess.c b/src/input/ipaccess.c
index 6c83d6d..d5291ab 100644
--- a/src/input/ipaccess.c
+++ b/src/input/ipaccess.c
@@ -56,10 +56,11 @@
static int ipaccess_rcvmsg(struct msgb *msg, int fd)
{
u_int8_t msg_type = *(msg->l2h);
+ int ret = 0;
switch (msg_type) {
case IPAC_MSGT_PING:
- write(fd, pong, sizeof(pong));
+ ret = write(fd, pong, sizeof(pong));
break;
case IPAC_MSGT_PONG:
DEBUGP(DMI, "PONG!\n");
@@ -69,7 +70,7 @@
break;
case IPAC_MSGT_ID_ACK:
DEBUGP(DMI, "ID_ACK? -> ACK!\n");
- write(fd, id_ack, sizeof(id_ack));
+ ret = write(fd, id_ack, sizeof(id_ack));
break;
}