aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/snmp/src/misc/snmp_config.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/snmp/src/misc/snmp_config.erl b/lib/snmp/src/misc/snmp_config.erl
index 5dffed8068..b1a99accf2 100644
--- a/lib/snmp/src/misc/snmp_config.erl
+++ b/lib/snmp/src/misc/snmp_config.erl
@@ -2623,15 +2623,15 @@ read_and_parse_term(Fd, StartLine) ->
Other
end.
-verify_lines([], _, Acc, _) ->
+verify_lines([], _, _, Acc) ->
list:reverse(Acc);
verify_lines(
- [{StartLine, Term, EndLine}|Lines], State, Acc, Check) ->
+ [{StartLine, Term, EndLine}|Lines], Check, State, Acc) ->
try Check(Term, State) of
{ok, NewState} ->
- verify_lines(Lines, NewState, [Term|Acc], Check);
+ verify_lines(Lines, Check, NewState, [Term|Acc]);
{{ok, NewTerm}, NewState} ->
- verify_lines(Lines, NewState, [NewTerm|Acc], Check)
+ verify_lines(Lines, Check, NewState, [NewTerm|Acc])
catch
{error, Reason} ->
throw({failed_check, StartLine, EndLine, Reason});