diff options
author | Micael Karlberg <bmk@erlang.org> | 2020-06-15 19:39:20 +0200 |
---|---|---|
committer | Micael Karlberg <bmk@erlang.org> | 2020-06-15 19:39:20 +0200 |
commit | c0ffd69f3d31278d82c75c818a1ee3ae0cdfe44c (patch) | |
tree | 950b37e299205a39071ca950ca20609544ce35d6 | |
parent | 7377fd7e838d8bbadf29d8d58c521fbc82f59234 (diff) | |
parent | 5bdef13fab9ddde5f78e1073c260c74db41238d8 (diff) | |
download | erlang-c0ffd69f3d31278d82c75c818a1ee3ae0cdfe44c.tar.gz |
Merge branch 'bmk/snmp/20200612/compile_warning_in_ex2/OTP-16716' into maint
OTP-16716
-rw-r--r-- | lib/snmp/examples/ex2/snmp_ex2_manager.erl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/snmp/examples/ex2/snmp_ex2_manager.erl b/lib/snmp/examples/ex2/snmp_ex2_manager.erl index 939f9f2b4d..03559917cd 100644 --- a/lib/snmp/examples/ex2/snmp_ex2_manager.erl +++ b/lib/snmp/examples/ex2/snmp_ex2_manager.erl @@ -190,19 +190,19 @@ handle_call({oid_to_name, Oid}, _From, S) -> {reply, Reply, S}; handle_call({sync_get, TargetName, Oids}, _From, S) -> - Reply = (catch snmpm:sync_get(?USER, TargetName, Oids)), + Reply = (catch snmpm:sync_get2(?USER, TargetName, Oids)), {reply, Reply, S}; handle_call({sync_get_next, TargetName, Oids}, _From, S) -> - Reply = (catch snmpm:sync_get_next(?USER, TargetName, Oids)), + Reply = (catch snmpm:sync_get_next2(?USER, TargetName, Oids)), {reply, Reply, S}; handle_call({sync_get_bulk, TargetName, NR, MR, Oids}, _From, S) -> - Reply = (catch snmpm:sync_get_bulk(?USER, TargetName, NR, MR, Oids)), + Reply = (catch snmpm:sync_get_bulk2(?USER, TargetName, NR, MR, Oids)), {reply, Reply, S}; handle_call({sync_set, TargetName, VarsAndVals}, _From, S) -> - Reply = (catch snmpm:sync_set(?USER, TargetName, VarsAndVals)), + Reply = (catch snmpm:sync_set2(?USER, TargetName, VarsAndVals)), {reply, Reply, S}; handle_call(Req, From, State) -> |