On 11 October 2010 13:51, Boris Zweimueller <[email protected]> wrote:
> the generated c code for this object ist:
>
> /** Check the ranges of the passed value for legality */
> if ( !(*val >= 54 && *val <= 54) || !(*val >= 65 && *val <= 65) )
> {
> return SNMP_ERR_WRONGVALUE;
> }
>
> which yields an error for each of the two correct values 54 oder 65. The
> '||' should be a '&&'.
Try the attached patch - does that fix the problem?
Dave
Index: local/mib2c.check_values.conf
===================================================================
--- local/mib2c.check_values.conf (revision 19393)
+++ local/mib2c.check_values.conf (working copy)
@@ -108,7 +108,7 @@
@eval $x = 1@
if (
@else@
- ||
+ &&
@end@
!(*val >= $min && *val <= $max)
@end@
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users