summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-11-04 21:49:23 +0100
committerHarald Welte <laforge@gnumonks.org>2011-11-04 21:49:23 +0100
commitdbe1c884894a657be6f5a8826148937e005152c2 (patch)
treec523efc63c6445d645ab6ee81f92b2adf993baac
parentd4e423f09dd9361d0e5612f30b224ef21362c8a9 (diff)
IPA client: make sure set_link_state is called with proper type
caught by dialyzer
-rw-r--r--rebar.config1
-rw-r--r--src/ss7_link_ipa_client.erl4
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) ->