diff options
author | Micael Karlberg <[email protected]> | 2013-01-21 12:01:43 +0100 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2013-01-21 12:01:43 +0100 |
commit | 043da0de9576732671fb61f560070932024dde87 (patch) | |
tree | fc9ba015ae9467f906f73fe8cfbc37a94d915a24 /lib/snmp/src/agent | |
parent | 65c7e90605fc653c5a4a19e91334bd29c981f02d (diff) | |
parent | 64d145baf82f0a25babe62b11b004f1b02892fd2 (diff) | |
download | otp-043da0de9576732671fb61f560070932024dde87.tar.gz otp-043da0de9576732671fb61f560070932024dde87.tar.bz2 otp-043da0de9576732671fb61f560070932024dde87.zip |
Merge branch 'bmk/snmp/snmp423_integration'
Diffstat (limited to 'lib/snmp/src/agent')
-rw-r--r-- | lib/snmp/src/agent/snmpa_agent.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/snmp/src/agent/snmpa_agent.erl b/lib/snmp/src/agent/snmpa_agent.erl index 9d30e332f1..57846db13b 100644 --- a/lib/snmp/src/agent/snmpa_agent.erl +++ b/lib/snmp/src/agent/snmpa_agent.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2012. All Rights Reserved. +%% Copyright Ericsson AB 1996-2013. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -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]), |