diff options
Diffstat (limited to 'lib/snmp/src')
-rw-r--r-- | lib/snmp/src/app/snmp.erl | 9 | ||||
-rw-r--r-- | lib/snmp/src/misc/snmp_log.erl | 1 |
2 files changed, 3 insertions, 7 deletions
diff --git a/lib/snmp/src/app/snmp.erl b/lib/snmp/src/app/snmp.erl index 216452afdd..490d2b9810 100644 --- a/lib/snmp/src/app/snmp.erl +++ b/lib/snmp/src/app/snmp.erl @@ -711,13 +711,8 @@ sys_info() -> [{arch, SysArch}, {ver, SysVer}]. os_info() -> - V = os:version(), - case os:type() of - {OsFam, OsName} -> - [{fam, OsFam}, {name, OsName}, {ver, V}]; - OsFam -> - [{fam, OsFam}, {ver, V}] - end. + {OsFam, OsName} = os:type(), + [{fam, OsFam}, {name, OsName}, {ver, os:version()}]. ms1() -> App = ?APPLICATION, diff --git a/lib/snmp/src/misc/snmp_log.erl b/lib/snmp/src/misc/snmp_log.erl index 5713c14912..9ae5c1109b 100644 --- a/lib/snmp/src/misc/snmp_log.erl +++ b/lib/snmp/src/misc/snmp_log.erl @@ -343,6 +343,7 @@ validate_loop({Cont, Terms, BadBytes}, Log, Validator, PrevTS, PrevSN) -> "~n NextTS: ~p" "~n NextSN: ~p", [NextTS, NextSN]), validate_loop(disk_log:chunk(Log, Cont), Log, Validator, NextTS, NextSN); +-dialyzer({nowarn_function, validate_loop/5}). % Future compat validate_loop(Error, _Log, _Write, _PrevTS, _PrevSN) -> Error. |