Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:19
erlang
0931-snmp-Fix-example-2-regarding-compiler-warn...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0931-snmp-Fix-example-2-regarding-compiler-warnings.patch of Package erlang
From 5bdef13fab9ddde5f78e1073c260c74db41238d8 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Fri, 12 Jun 2020 16:56:53 +0200 Subject: [PATCH] [snmp] Fix example 2 regarding compiler warnings The second example (ex2) used deprecated functions. OTP-16716 --- lib/snmp/examples/ex2/snmp_ex2_manager.erl | 8 ++++---- 1 file 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) -> -- 2.26.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor