diff options
Diffstat (limited to 'net/p5-SNMP/patches/patch-ac')
-rw-r--r-- | net/p5-SNMP/patches/patch-ac | 77 |
1 files changed, 59 insertions, 18 deletions
diff --git a/net/p5-SNMP/patches/patch-ac b/net/p5-SNMP/patches/patch-ac index ac873584093..83bc1aa7273 100644 --- a/net/p5-SNMP/patches/patch-ac +++ b/net/p5-SNMP/patches/patch-ac @@ -1,20 +1,61 @@ -$NetBSD: patch-ac,v 1.1 2001/01/30 22:03:40 wrstuden Exp $ +$NetBSD: patch-ac,v 1.2 2004/02/13 17:46:22 seb Exp $ ---- t/mib.t.orig Tue Jan 30 05:15:44 2001 -+++ t/mib.t Tue Jan 30 05:16:19 2001 -@@ -147,13 +147,13 @@ - ###################### 15 ######################### - $res = $SNMP::MIB{atNetAddress}{nextNode}; - #print("res is --> $res\n"); --ok($res =~ /^HASH/); -+ok(ref($res) eq HASH); - #print("\n"); +--- agent/agent.xs.orig Thu May 8 23:15:40 2003 ++++ agent/agent.xs +@@ -214,19 +214,19 @@ handler_wrapper(netsnmp_mib_handler + PUSHMARK(sp); + rarg = newSViv(0); + arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_mib_handler"); +- sv_setiv(arg, (int) handler); ++ sv_setiv(arg, (IV) handler); + XPUSHs(rarg); + rarg = newSViv(0); + arg = newSVrv(rarg, "NetSNMP::agent::reginfo"); +- sv_setiv(arg, (int) reginfo); ++ sv_setiv(arg, (IV) reginfo); + XPUSHs(rarg); + rarg = newSViv(0); + arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_agent_request_info"); +- sv_setiv(arg, (int) reqinfo); ++ sv_setiv(arg, (IV) reqinfo); + XPUSHs(rarg); + rarg = newSViv(0); + arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_request_infoPtr"); +- sv_setiv(arg, (int) requests); ++ sv_setiv(arg, (IV) requests); + XPUSHs(rarg); + PUTBACK; + if (SvTYPE(cb) == SVt_PVCV) { +@@ -372,9 +372,9 @@ nsahr_getRootOID(me) + memcpy(o->name, reginfo->rootoid, + reginfo->rootoid_len * sizeof(oid)); - ######################## 16 ######################### - $res = $SNMP::MIB{sysDescr}{children}; - #print("res is --> $res\n"); --ok($res =~ /^ARRAY/); -+ok(ref($res) eq ARRAY); - #print("\n"); - #################### 17 ######################### - +- rarg = newSViv((int) 0); ++ rarg = newSViv((IV) 0); + arg = newSVrv(rarg, "netsnmp_oidPtr"); +- sv_setiv(arg, (int) o); ++ sv_setiv(arg, (IV) o); + + XPUSHs(rarg); + +@@ -411,9 +411,9 @@ getOID(me) + memcpy(o->name, request->requestvb->name, + request->requestvb->name_length * sizeof(oid)); + +- rarg = newSViv((int) 0); ++ rarg = newSViv((IV) 0); + arg = newSVrv(rarg, "netsnmp_oidPtr"); +- sv_setiv(arg, (int) o); ++ sv_setiv(arg, (IV) o); + + XPUSHs(rarg); + +@@ -754,7 +754,7 @@ nari_next(me) + request = request->next; + rarg = newSViv(0); + arg = newSVrv(rarg, "NetSNMP::agent::netsnmp_request_infoPtr"); +- sv_setiv(arg, (int) request); ++ sv_setiv(arg, (IV) request); + ST(0) = rarg; + } else { + ST(0) = &sv_undef; |