aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2013-04-30 23:29:13 +0200
committerMicael Karlberg <[email protected]>2013-04-30 23:29:13 +0200
commit61ac3a2188af0f5d96ef9e1143845a12093acf4c (patch)
tree328993bf5fe1953ed3cdf7678751e3082017f633 /lib/snmp/src
parent39096a9e9183df34299914d0983b17815fdf2730 (diff)
downloadotp-61ac3a2188af0f5d96ef9e1143845a12093acf4c.tar.gz
otp-61ac3a2188af0f5d96ef9e1143845a12093acf4c.tar.bz2
otp-61ac3a2188af0f5d96ef9e1143845a12093acf4c.zip
[snmp/agent] Some minor documentation additions
Diffstat (limited to 'lib/snmp/src')
-rw-r--r--lib/snmp/src/agent/snmpa_mib_data.erl2
-rw-r--r--lib/snmp/src/agent/snmpa_mib_data_tttn.erl2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/snmp/src/agent/snmpa_mib_data.erl b/lib/snmp/src/agent/snmpa_mib_data.erl
index 599cba4b5b..790b056065 100644
--- a/lib/snmp/src/agent/snmpa_mib_data.erl
+++ b/lib/snmp/src/agent/snmpa_mib_data.erl
@@ -53,7 +53,7 @@
{table, TableOid :: oid(), TableRestOid :: oid(), MibEntry :: me()}
-callback register_subagent(State :: term(), Oid :: oid(), Pid :: pid()) ->
- {error, Reason :: term()} | NewState :: term().
+ {ok, NewState :: term()} | {error, Reason :: term()}.
-callback unregister_subagent(State :: term(),
Pid :: pid() | Oid :: oid()) ->
diff --git a/lib/snmp/src/agent/snmpa_mib_data_tttn.erl b/lib/snmp/src/agent/snmpa_mib_data_tttn.erl
index 043dbaef6c..561e97deee 100644
--- a/lib/snmp/src/agent/snmpa_mib_data_tttn.erl
+++ b/lib/snmp/src/agent/snmpa_mib_data_tttn.erl
@@ -376,7 +376,7 @@ register_subagent(#mib_data{tree = T} = MibData, Oid, Pid) ->
NewRootTree ->
SAs = [{Pid, Oid} | MibData#mib_data.subagents],
T2 = T#tree{root = NewRootTree},
- MibData#mib_data{tree = T2, subagents = SAs}
+ {ok, MibData#mib_data{tree = T2, subagents = SAs}}
end.