diff options
author | Micael Karlberg <[email protected]> | 2013-01-09 16:41:27 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2013-01-09 16:41:27 +0100 |
commit | dfee33fdd21cf54cf395621dbfb75ae6bbf22704 (patch) | |
tree | 4afd253bc68bf506d46a7372455ed43ce270ae1a /lib/snmp | |
parent | 9229901660ef1c163ea82c76ea3dc21f5a4f83d4 (diff) | |
parent | af164bdd6bd5ae6bd3bdde155af9d3d44595fb93 (diff) | |
download | otp-dfee33fdd21cf54cf395621dbfb75ae6bbf22704.tar.gz otp-dfee33fdd21cf54cf395621dbfb75ae6bbf22704.tar.bz2 otp-dfee33fdd21cf54cf395621dbfb75ae6bbf22704.zip |
Merge branch 'lf/snmp-tuple-fun' into bmk/snmp/remove_tuple_fun/OTP-10672
Diffstat (limited to 'lib/snmp')
-rw-r--r-- | lib/snmp/src/agent/snmpa_agent.erl | 4 |
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]), |