aboutsummaryrefslogtreecommitdiffstats
path: root/lib/snmp/src/agent
diff options
context:
space:
mode:
Diffstat (limited to 'lib/snmp/src/agent')
-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.