diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-11 10:15:26 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-11 10:15:26 +0200 |
commit | 1389ac7d2a44d905b9830dbd73a90cab1cca1719 (patch) | |
tree | 469a748886c2bfa740fe84b3d881c9a74ca8f029 /openbsc/src/gprs/gprs_ns.c | |
parent | a7a3194da83ac7d4372c9a96556936b918c98983 (diff) |
[gprs] NS: cleanup / fix compiler warnings
Diffstat (limited to 'openbsc/src/gprs/gprs_ns.c')
-rw-r--r-- | openbsc/src/gprs/gprs_ns.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openbsc/src/gprs/gprs_ns.c b/openbsc/src/gprs/gprs_ns.c index 3fa2c0169..69c96ca37 100644 --- a/openbsc/src/gprs/gprs_ns.c +++ b/openbsc/src/gprs/gprs_ns.c @@ -129,7 +129,7 @@ static struct gprs_nsvc *nsvc_create(struct gprs_ns_inst *nsi, uint16_t nsvci) return nsvc; } -static void ns_dispatch_signal(struct nsvc *nsvc, unsigned int signal, +static void ns_dispatch_signal(struct gprs_nsvc *nsvc, unsigned int signal, uint8_t cause) { struct ns_signal_data nssd; @@ -291,6 +291,8 @@ static void gprs_ns_timer_cb(void *data) gprs_ns_tx_reset(nsvc, NS_CAUSE_OM_INTERVENTION); nsvc_start_timer(nsvc, NSVC_TIMER_TNS_RESET); break; + case _NSVC_TIMER_NR: + break; } } @@ -433,7 +435,7 @@ static int gprs_ns_rx_reset(struct gprs_nsvc *nsvc, struct msgb *msg) /* inform interested parties about the fact that this NSVC * has received RESET */ - ns_dispatch_signal(nsvc, S_NS_RESET, cause); + ns_dispatch_signal(nsvc, S_NS_RESET, *cause); return gprs_ns_tx_reset_ack(nsvc); } @@ -461,7 +463,7 @@ static int gprs_ns_rx_block(struct gprs_nsvc *nsvc, struct msgb *msg) cause = (uint8_t *) TLVP_VAL(&tp, NS_IE_CAUSE); //nsvci = (uint16_t *) TLVP_VAL(&tp, NS_IE_VCI); - ns_dispatch_signal(nsvc, S_NS_BLOCK, cause); + ns_dispatch_signal(nsvc, S_NS_BLOCK, *cause); return gprs_ns_tx_simple(nsvc, NS_PDUT_BLOCK_ACK); } |