aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp
diff options
context:
space:
mode:
authorLuca Favatella <[email protected]>2012-10-25 12:42:45 +0100
committerLuca Favatella <[email protected]>2012-10-26 16:05:31 +0100
commitaf164bdd6bd5ae6bd3bdde155af9d3d44595fb93 (patch)
treee60915ab555eefde33ec7c329dd1ab5f154a7d8b /lib/snmp
parente85c4dda93e416e8e97c0dcfadc5eeaf5bd8b4e1 (diff)
downloadotp-af164bdd6bd5ae6bd3bdde155af9d3d44595fb93.tar.gz
otp-af164bdd6bd5ae6bd3bdde155af9d3d44595fb93.tar.bz2
otp-af164bdd6bd5ae6bd3bdde155af9d3d44595fb93.zip
Remove runtime warning in snmpa_agent because of tuple fun usage
Diffstat (limited to 'lib/snmp')
-rw-r--r--lib/snmp/src/agent/snmpa_agent.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmpa_agent.erl b/lib/snmp/src/agent/snmpa_agent.erl
index 9d30e332f1..7b2b9464c0 100644
--- a/lib/snmp/src/agent/snmpa_agent.erl
+++ b/lib/snmp/src/agent/snmpa_agent.erl
@@ -1134,7 +1134,7 @@ handle_call({get, Vars, Context}, _From, S) ->
"~n Vars: ~p"
"~n Context: ~p", [Vars, Context]),
put_pdu_data({undefined, undefined, undefined, undefined, Context}),
- case catch mapfoldl({?MODULE, tr_var}, [], 1, Vars) of
+ case catch mapfoldl(fun ?MODULE:tr_var/2, [], 1, Vars) of
{error, Reason} -> {reply, {error, Reason}, S};
{_, Varbinds} ->
?vdebug("Varbinds: ~p",[Varbinds]),
@@ -1155,7 +1155,7 @@ handle_call({get_next, Vars, Context}, _From, S) ->
"~n Vars: ~p"
"~n Context: ~p",[Vars, Context]),
put_pdu_data({undefined, undefined, undefined, undefined, Context}),
- case catch mapfoldl({?MODULE, tr_var}, [], 1, Vars) of
+ case catch mapfoldl(fun ?MODULE:tr_var/2, [], 1, Vars) of
{error, Reason} -> {reply, {error, Reason}, S};
{_, Varbinds} ->
?vdebug("Varbinds: ~p",[Varbinds]),