aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2011-03-01 18:00:33 +0100
committerMicael Karlberg <[email protected]>2011-03-01 18:00:33 +0100
commitcf7f5f99f46708db185d927d0c7681fc4f6f3a0e (patch)
tree36d57b4c3512e1acab69ca2ec5afae20d25f5ef7 /lib/snmp
parentf00e9a7a31e7b58f1ac9e8f6e36183a5173f7eab (diff)
downloadotp-cf7f5f99f46708db185d927d0c7681fc4f6f3a0e.tar.gz
otp-cf7f5f99f46708db185d927d0c7681fc4f6f3a0e.tar.bz2
otp-cf7f5f99f46708db185d927d0c7681fc4f6f3a0e.zip
Fixed an error detected by dialyzer:
The second argument to the definitions_loop function should be the record dldata and not the atome false...
Diffstat (limited to 'lib/snmp')
-rw-r--r--lib/snmp/src/compile/snmpc.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/snmp/src/compile/snmpc.erl b/lib/snmp/src/compile/snmpc.erl
index c4b3d7090f..195c238184 100644
--- a/lib/snmp/src/compile/snmpc.erl
+++ b/lib/snmp/src/compile/snmpc.erl
@@ -894,12 +894,12 @@ definitions_loop([{#mc_object_type{name = NameOfEntry,
definitions_loop([{#mc_notification{name = TrapName,
status = deprecated}, Line}|T],
- false) ->
+ #dldata{deprecated = false} = Data) ->
?vinfo2("defloop -> notification ~w is deprecated => ignored",
[TrapName], Line),
update_status(TrapName, deprecated),
ensure_macro_imported('NOTIFICATION-TYPE', Line),
- definitions_loop(T, false);
+ definitions_loop(T, Data);
definitions_loop([{#mc_notification{name = TrapName,
status = obsolete}, Line}|T],