Re: [lisp-snmp] [patch] scalar variable handler body
Brought to you by:
binghe
From: Chun T. (binghe) <bin...@gm...> - 2011-07-05 14:41:49
|
Hi, Nicolas Thanks for your patch, I've merged it. [1] P.S. for your other issue, please give me some time investigating it, currently I'm a bit busy working on some CL-HTTP related work. --binghe [1] https://cl-net-snmp.svn.sourceforge.net/svnroot/cl-net-snmp/snmp/branches/6 在 2011-7-5,19:59, Nicolas Martyanoff 写道: > > In snmp-6.0.1, the expansion of the macro DEF-SCALAR-VARIABLE is > incorrect if the body contains more than a single form. > > The following patch fixes the problem. > > --- server-base.lisp.orig 2011-07-05 13:55:33.905828250 +0200 > +++ server-base.lisp 2011-07-05 13:55:39.298523407 +0200 > @@ -53,7 +53,8 @@ > (defun ,oid (,agent &optional ,ids) > (declare (ignorable ,agent)) > (if (null ,ids) 0 > - ,@body)) > + (progn > + ,@body))) > (eval-when (:load-toplevel :execute) > (register-variable (oid ,name) #',oid) > ,oid)))) > > -- > Nicolas Martyanoff > http://codemore.org > kh...@gm... > ------------------------------------------------------------------------------ > All of the data generated in your IT infrastructure is seriously valuable. > Why? It contains a definitive record of application performance, security > threats, fraudulent activity, and more. Splunk takes this data and makes > sense of it. IT sense. And common sense. > http://p.sf.net/sfu/splunk-d2d-c2_______________________________________________ > cl-net-snmp-general mailing list > cl-...@li... > https://lists.sourceforge.net/lists/listinfo/cl-net-snmp-general |