diff options
author | Raimo Niskanen <[email protected]> | 2014-05-14 09:26:57 +0200 |
---|---|---|
committer | Raimo Niskanen <[email protected]> | 2014-07-25 12:15:15 +0200 |
commit | 79bfddd5d49d26f45c9813738f7c29e8e3afee19 (patch) | |
tree | 8c1aff539848c29875480c5067c9097710ed4912 /lib/snmp/src | |
parent | 36426bcc894853dfd38a4d8db7b4971934df9692 (diff) | |
download | otp-79bfddd5d49d26f45c9813738f7c29e8e3afee19.tar.gz otp-79bfddd5d49d26f45c9813738f7c29e8e3afee19.tar.bz2 otp-79bfddd5d49d26f45c9813738f7c29e8e3afee19.zip |
Bugfix: argument order to internal function verify_lines/4
Diffstat (limited to 'lib/snmp/src')
-rw-r--r-- | lib/snmp/src/misc/snmp_config.erl | 8 |
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}); |