fix some more compiler warnings
diff --git a/openbsc/src/input/misdn.c b/openbsc/src/input/misdn.c
index 82268e8..135cfad 100644
--- a/openbsc/src/input/misdn.c
+++ b/openbsc/src/input/misdn.c
@@ -262,7 +262,7 @@
 
 	ret = send(bfd->fd, tx_buf, sizeof(*hh) + BCHAN_TX_GRAN, 0);
 	if (ret < sizeof(*hh) + BCHAN_TX_GRAN)
-		DEBUGP(DMIB, "send returns %d instead of %u\n", ret,
+		DEBUGP(DMIB, "send returns %d instead of %lu\n", ret,
 			sizeof(*hh) + BCHAN_TX_GRAN);
 
 	return ret;
diff --git a/openbsc/src/silent_call.c b/openbsc/src/silent_call.c
index 3161834..82b6563 100644
--- a/openbsc/src/silent_call.c
+++ b/openbsc/src/silent_call.c
@@ -32,6 +32,7 @@
 #include <openbsc/gsm_data.h>
 #include <openbsc/gsm_subscriber.h>
 #include <openbsc/abis_rsl.h>
+#include <openbsc/chan_alloc.h>
 
 static int paging_cb_silent(unsigned int hooknum, unsigned int event,
 			    struct msgb *msg, void *_lchan, void *_data)
diff --git a/openbsc/src/vty_interface.c b/openbsc/src/vty_interface.c
index 9aa9706..894146b 100644
--- a/openbsc/src/vty_interface.c
+++ b/openbsc/src/vty_interface.c
@@ -620,7 +620,7 @@
       "show e1_timeslot [line_nr] [ts_nr]",
 	SHOW_STR "Display information about a E1 timeslot\n")
 {
-	struct e1inp_line *line;
+	struct e1inp_line *line = NULL;
 	struct e1inp_ts *ts;
 	int ts_nr;