pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/osmo-bsc/+/38661?usp=email )

 (

1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted 
one.
 )Change subject: Use new libosmo-sigtran API osmo_ss7_instances_llist_entry()
......................................................................

Use new libosmo-sigtran API osmo_ss7_instances_llist_entry()

Depends: libosmo-sigtran.git Change-Id I148438aecd64bdd66848d4b3404d379a380c5e9c
Change-Id: Iacbe2944957ab2e2a627f2dabdaa66d9fc8eabe3
---
M src/osmo-bsc/osmo_bsc_sigtran.c
1 file changed, 3 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  osmith: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved




diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c
index 66d38bf..f51aa0a 100644
--- a/src/osmo-bsc/osmo_bsc_sigtran.c
+++ b/src/osmo-bsc/osmo_bsc_sigtran.c
@@ -559,7 +559,7 @@
 {
        struct bsc_msc_data *msc;
        uint32_t default_pc;
-       struct osmo_ss7_instance *inst;
+       struct llist_head *ll_it;
        int create_instance_0_for_msc_nr = -1;

        osmo_ss7_register_rx_unknown_cb(&asp_rx_unknown);
@@ -615,7 +615,8 @@
         * Iterate cs7 instance indexes and see for each one whether an MSC is 
configured for it.
         * The 'msc' / 'msc-addr' command selects the cs7 instance used for an 
MSC.
         */
-       llist_for_each_entry(inst, &osmo_ss7_instances, list) {
+       llist_for_each(ll_it, &osmo_ss7_instances) {
+               struct osmo_ss7_instance *inst = 
osmo_ss7_instances_llist_entry(ll_it);
                char inst_name[32];
                enum osmo_ss7_asp_protocol used_proto = OSMO_SS7_ASP_PROT_NONE;
                int prev_msc_nr;

--
To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/38661?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: Iacbe2944957ab2e2a627f2dabdaa66d9fc8eabe3
Gerrit-Change-Number: 38661
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to