fixed warnings from compiler findings

- added missing header definition for tun_alloc
- added missing switch cases -> fixed by TODO/FIXME comment
This commit is contained in:
luckyhacky 2014-11-13 20:35:39 +01:00 committed by Jiří Pinkava
parent 42dead06be
commit dafde94bfe
5 changed files with 36 additions and 2 deletions

View file

@ -28,6 +28,7 @@
#include <osmocom/core/bits.h>
#include "tetra_llc_pdu.h"
#include "tuntap.h"
static int tun_fd = -1;
@ -78,7 +79,7 @@ static int tllc_defrag_in(struct tllc_state *llcs,
return 0;
}
static int tllc_defrag_out(struct tllc_state *llcs,
static void tllc_defrag_out(struct tllc_state *llcs,
struct tetra_llc_pdu *lpp)
{
struct tllc_defrag_q_e *dqe;
@ -147,6 +148,18 @@ int rx_tm_sdu(struct msgb *msg, unsigned int len)
/* check if the fragment is complete and hand it off*/
tllc_defrag_out(&g_llcs, &lpp);
break;
case TLLC_PDUT_DEC_UNKNOWN:
// TODO: currently not handled!
// FIXME
break;
case TLLC_PDUT_DEC_ALX_ACK:
// TODO: currently not handled!
// FIXME
break;
case TLLC_PDUT_DEC_ALX_RNR:
// TODO: currently not handled!
// FIXME
break;
}
if (lpp.tl_sdu && lpp.ss == 0) {