aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2013-03-07 15:25:48 +0100
committerIvan Kluchnikov <kluchnikovi@gmail.com>2014-05-06 17:23:16 +0400
commit93dc8ca60ef3a559c9ca8b5764cf0a4bd61e4897 (patch)
tree069cd38cdecfd683c8b1fc8378b2090b9aa511ca /openbsc
parent0a755e0a374d97692c6983f200f1456f2bb1e651 (diff)
HACK: Fix of several compiler warnings
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/gprs/gprs_llc.c3
-rw-r--r--openbsc/src/gprs/sgsn_main.c4
-rw-r--r--openbsc/src/libbsc/bsc_api.c3
3 files changed, 9 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_llc.c b/openbsc/src/gprs/gprs_llc.c
index 1e40dcba6..41dd463b9 100644
--- a/openbsc/src/gprs/gprs_llc.c
+++ b/openbsc/src/gprs/gprs_llc.c
@@ -797,6 +797,9 @@ static int gprs_llc_hdr_parse(struct gprs_llc_hdr_parsed *ghp,
/* receive an incoming LLC PDU (BSSGP-UL-UNITDATA-IND, 7.2.4.2) */
int gprs_llc_rcvmsg(struct msgb *msg, struct tlv_parsed *tv)
{
+#if 0
+ struct bssgp_ud_hdr *udh = (struct bssgp_ud_hdr *) msgb_bssgph(msg);
+#endif
struct gprs_llc_hdr *lh = (struct gprs_llc_hdr *) msgb_llch(msg);
struct gprs_llc_hdr_parsed llhp;
struct gprs_llc_lle *lle;
diff --git a/openbsc/src/gprs/sgsn_main.c b/openbsc/src/gprs/sgsn_main.c
index f5a66e663..e20a3dc60 100644
--- a/openbsc/src/gprs/sgsn_main.c
+++ b/openbsc/src/gprs/sgsn_main.c
@@ -56,6 +56,10 @@
#include "../../bscconfig.h"
+/* FIXME: put into seperate header file */
+int gprs_sndcp_vty_init(void);
+int sgsn_gtp_init(struct sgsn_instance *sgi);
+
/* this is here for the vty... it will never be called */
void subscr_put() { abort(); }
diff --git a/openbsc/src/libbsc/bsc_api.c b/openbsc/src/libbsc/bsc_api.c
index 81003ddbd..22a0543e1 100644
--- a/openbsc/src/libbsc/bsc_api.c
+++ b/openbsc/src/libbsc/bsc_api.c
@@ -90,7 +90,8 @@ static uint8_t lchan_to_chosen_channel(struct gsm_lchan *lchan)
channel = 0x9;
break;
case GSM_LCHAN_UNKNOWN:
- LOGP(DMSC, LOGL_ERROR, "Unknown lchan type: %p\n", lchan);
+ default:
+ LOGP(DMSC, LOGL_ERROR, "Unknown lchan type: %u\n", lchan->type);
break;
}