diff options
-rw-r--r-- | src/pcu_l1_if.cpp | 5 | ||||
-rw-r--r-- | src/pcu_vty_functions.cpp | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/pcu_l1_if.cpp b/src/pcu_l1_if.cpp index 9cc62708..2aea00b4 100644 --- a/src/pcu_l1_if.cpp +++ b/src/pcu_l1_if.cpp @@ -840,15 +840,16 @@ static int pcu_rx_susp_req(struct gsm_pcu_if_susp_req *susp_req) static int pcu_rx_app_info_req(struct gsm_pcu_if_app_info_req *app_info_req) { - GprsMs *ms; BTS *bts = BTS::main_bts(); struct gprs_rlcmac_bts *bts_data = bts->bts_data(); + struct llist_head *tmp; LOGP(DL1IF, LOGL_DEBUG, "Application Information Request received: type=0x%08x len=%i\n", app_info_req->application_type, app_info_req->len); bts_data->app_info_pending = 0; - llist_for_each_entry(ms, bts->ms_store().ms_list(), list) { + llist_for_each(tmp, bts->ms_store().ms_list()) { + GprsMs *ms = llist_entry(tmp, typeof(*ms), list); if (!ms_dl_tbf(ms)) continue; bts_data->app_info_pending++; diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp index 92be77be..0276b3e3 100644 --- a/src/pcu_vty_functions.cpp +++ b/src/pcu_vty_functions.cpp @@ -207,10 +207,12 @@ static int show_ms(struct vty *vty, GprsMs *ms) int pcu_vty_show_ms_all(struct vty *vty, struct gprs_rlcmac_bts *bts_data) { BTS *bts = bts_data->bts; - GprsMs *ms_iter; + struct llist_head *tmp; - llist_for_each_entry(ms_iter, bts->ms_store().ms_list(), list) + llist_for_each(tmp, bts->ms_store().ms_list()) { + GprsMs *ms_iter = llist_entry(tmp, typeof(*ms_iter), list); show_ms(vty, ms_iter); + } return CMD_SUCCESS; } |