diff options
author | Micael Karlberg <[email protected]> | 2019-06-13 16:12:11 +0200 |
---|---|---|
committer | Micael Karlberg <[email protected]> | 2019-06-27 17:50:45 +0200 |
commit | 331a5f531326da2d0ac23a1fa40c8a51a749c464 (patch) | |
tree | 6c5a92c7a307c3d9410b2a71fea2f4fcf4d17168 /lib/snmp/src/manager/snmpm_config.erl | |
parent | 2b285f1dddc89ac2b4194c16bdb3cc92a89c9976 (diff) | |
download | otp-331a5f531326da2d0ac23a1fa40c8a51a749c464.tar.gz otp-331a5f531326da2d0ac23a1fa40c8a51a749c464.tar.bz2 otp-331a5f531326da2d0ac23a1fa40c8a51a749c464.zip |
[snmp|manager] Dialyzer related changes
Changes to satisfy dialyzer. Including changing the definition
of the snmpm_network_interface behaviour (use the '-callback'
attribute instead of an explicit behaviour_info/1 function).
OTP-15932
Diffstat (limited to 'lib/snmp/src/manager/snmpm_config.erl')
-rw-r--r-- | lib/snmp/src/manager/snmpm_config.erl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/snmp/src/manager/snmpm_config.erl b/lib/snmp/src/manager/snmpm_config.erl index cd9fecd4d4..4653d9822d 100644 --- a/lib/snmp/src/manager/snmpm_config.erl +++ b/lib/snmp/src/manager/snmpm_config.erl @@ -2738,16 +2738,16 @@ dets_backup(close, _Cont, _D, B) -> ok; dets_backup(read, Cont1, D, B) -> case dets:bchunk(D, Cont1) of + {error, _} = ERROR -> + ERROR; + '$end_of_table' -> + dets:close(B), + end_of_input; {Cont2, Data} -> F = fun(Arg) -> dets_backup(Arg, Cont2, D, B) end, - {Data, F}; - '$end_of_table' -> - dets:close(B), - end_of_input; - Error -> - Error + {Data, F} end. |