From dbe1c884894a657be6f5a8826148937e005152c2 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Fri, 4 Nov 2011 21:49:23 +0100 Subject: IPA client: make sure set_link_state is called with proper type caught by dialyzer --- rebar.config | 1 + src/ss7_link_ipa_client.erl | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/rebar.config b/rebar.config index e6f23ee..498d3d4 100644 --- a/rebar.config +++ b/rebar.config @@ -1,3 +1,4 @@ +{erl_opts, [debug_info]}. {sub_dirs, ["rel"]}. {deps, [ {epcap, "0.03", {git, "git://git.osmocom.org/erlang/epcap", "master"}} diff --git a/src/ss7_link_ipa_client.erl b/src/ss7_link_ipa_client.erl index d1cb95a..0bd1598 100644 --- a/src/ss7_link_ipa_client.erl +++ b/src/ss7_link_ipa_client.erl @@ -76,12 +76,12 @@ handle_cast(#primitive{subsystem = 'M', gen_name = 'SCTP_ESTABLISH', spec_name = {noreply, L}; handle_cast(#primitive{subsystem = 'M', gen_name = 'ASP_UP', spec_name = confirm}, L) -> io:format("~p: ASP_UP.ind -> ASP_ACTIVE.req~n", [?MODULE]), - set_link_state(L, up), + set_link_state(L#loop_dat.link, up), gen_fsm:send_event(L#loop_dat.ipa_pid, osmo_util:make_prim('M','ASP_ACTIVE',request)), {noreply, L}; handle_cast(#primitive{subsystem = 'M', gen_name = 'ASP_ACTIVE', spec_name = confirm}, L) -> io:format("~p: ASP_ACTIVE.ind - M3UA now active and ready~n", [?MODULE]), - set_link_state(L, active), + set_link_state(L#loop_dat.link, active), %tx_sccp_udt(L#loop_dat.scrc_pid), {noreply, L}; handle_cast(#primitive{subsystem = 'M', gen_name = 'ASP_DOWN'}, L) -> -- cgit v1.2.3