diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-06 12:20:56 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-23 20:18:18 +0100 |
commit | d66777f9cfc5b74253b1b163e2d8dc32e8f50ef9 (patch) | |
tree | 72664778549ec6cea84d93744da9df700a404b57 /openbsc/src/libbsc/handover_logic.c | |
parent | 5ca825e431e837b95f7db9057792e5a66de97a89 (diff) |
rsl: Call the release function with the enum name and not the number
Done with the semantic patch:
@rule1@
expression E;
expression F;
@@
- lchan_release(E, F, 1);
+ lchan_release(E, F, RSL_REL_LOCAL_END);
@rule2@
expression E;
expression F;
@@
- lchan_release(E, F, 0);
+ lchan_release(E, F, RSL_REL_NORMAL);
Diffstat (limited to 'openbsc/src/libbsc/handover_logic.c')
-rw-r--r-- | openbsc/src/libbsc/handover_logic.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsc/src/libbsc/handover_logic.c b/openbsc/src/libbsc/handover_logic.c index 5ce33018c..d2cd5efd9 100644 --- a/openbsc/src/libbsc/handover_logic.c +++ b/openbsc/src/libbsc/handover_logic.c @@ -167,7 +167,7 @@ void bsc_clear_handover(struct gsm_subscriber_connection *conn, int free_lchan) conn->ho_lchan = NULL; if (free_lchan) - lchan_release(ho->new_lchan, 0, 1); + lchan_release(ho->new_lchan, 0, RSL_REL_LOCAL_END); osmo_timer_del(&ho->T3103); llist_del(&ho->list); @@ -185,7 +185,7 @@ static void ho_T3103_cb(void *_ho) ho->new_lchan->conn->ho_lchan = NULL; ho->new_lchan->conn = NULL; - lchan_release(ho->new_lchan, 0, 1); + lchan_release(ho->new_lchan, 0, RSL_REL_LOCAL_END); llist_del(&ho->list); talloc_free(ho); } @@ -276,7 +276,7 @@ static int ho_gsm48_ho_compl(struct gsm_lchan *new_lchan) ho->old_lchan->conn = NULL; rsl_lchan_set_state(ho->old_lchan, LCHAN_S_INACTIVE); - lchan_release(ho->old_lchan, 0, 1); + lchan_release(ho->old_lchan, 0, RSL_REL_LOCAL_END); /* do something to re-route the actual speech frames ! */ @@ -306,7 +306,7 @@ static int ho_gsm48_ho_fail(struct gsm_lchan *old_lchan) /* release the channel and forget about it */ ho->new_lchan->conn->ho_lchan = NULL; ho->new_lchan->conn = NULL; - lchan_release(ho->new_lchan, 0, 1); + lchan_release(ho->new_lchan, 0, RSL_REL_LOCAL_END); talloc_free(ho); |