aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent/snmpa_get.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-06-14 11:13:34 +0200
committerMicael Karlberg <[email protected]>2019-06-27 17:50:57 +0200
commit04b795f59e678e550fb8c7650952c5ded1096cef (patch)
tree27544878eff0b1063babbe3c2c8b3c61bc216852 /lib/snmp/src/agent/snmpa_get.erl
parent331a5f531326da2d0ac23a1fa40c8a51a749c464 (diff)
downloadotp-04b795f59e678e550fb8c7650952c5ded1096cef.tar.gz
otp-04b795f59e678e550fb8c7650952c5ded1096cef.tar.bz2
otp-04b795f59e678e550fb8c7650952c5ded1096cef.zip
[snmp|agent] Dialyzer related changes
Changes to satisfy dialyzer. Including changing the definition of some of the behaviours (use the '-callback' attribute instead of an explicit behaviour_info/1 function). Also found and corrected some (apparently minor) bugs. OTP-15932
Diffstat (limited to 'lib/snmp/src/agent/snmpa_get.erl')
-rw-r--r--lib/snmp/src/agent/snmpa_get.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/snmp/src/agent/snmpa_get.erl b/lib/snmp/src/agent/snmpa_get.erl
index e67975a67d..b35a57970e 100644
--- a/lib/snmp/src/agent/snmpa_get.erl
+++ b/lib/snmp/src/agent/snmpa_get.erl
@@ -168,6 +168,7 @@ do_get_subagents([], Res, _IsNotification) ->
%% #varbind |
%% List of #varbind
%%-----------------------------------------------------------------
+
try_get(IVb, IsNotification) when is_record(IVb, ivarbind) ->
?vtrace("try_get(ivarbind) -> entry with"
"~n IVb: ~p", [IVb]),
@@ -186,6 +187,7 @@ try_get({TableOid, TableVbs}, IsNotification) ->
NVbs ++ NoAccessVbs
end.
+
%%-----------------------------------------------------------------
%% Make sure all requested columns are accessible.
%%-----------------------------------------------------------------