Make gcc happy and remove a couple of warnings

Remove the callbacks from gsm_network for now. A set of different
callbacks will be back. E.g. when the paging is completed, when the
Q.931 like call handling is there...

Remove var's or move them into #if 0, remove unused stuff that looks
like we do not need it anytime soon or #if 0 them, move stuff around.
diff --git a/src/misdn.c b/src/misdn.c
index 17d2669..75cdb83 100644
--- a/src/misdn.c
+++ b/src/misdn.c
@@ -197,15 +197,6 @@
 #define TEI_OML		25
 #define TEI_RSL		1
 
-void hexdump(unsigned char *buf, int len)
-{
-	int i;
-	for (i = 0; i < len; i++) {
-		fprintf(stdout, "%02x ", buf[i]);
-	}
-	fprintf(stdout, "\n");
-}
-
 #define TS1_ALLOC_SIZE	300
 
 static int handle_ts1_read(struct bsc_fd *bfd)
@@ -389,7 +380,7 @@
 	struct mi_e1_handle *e1h = bfd->data;
 	struct msgb *msg = msgb_alloc(TSX_ALLOC_SIZE);
 	struct mISDNhead *hh;
-	int ret;
+	int ret, dummy;
 
 	if (!msg)
 		return -ENOMEM;
@@ -425,7 +416,7 @@
 		if (!e1h->ts2_fd)
 			e1h->ts2_fd = open("/tmp/ts2.dump", O_WRONLY|O_APPEND|O_CREAT, 0660);
 		
-		write(e1h->ts2_fd, msgb_l2(msg), ret - MISDN_HEADER_LEN);
+		dummy = write(e1h->ts2_fd, msgb_l2(msg), ret - MISDN_HEADER_LEN);
 
 		break;
 	default: