Re: mib2c generates wrong code for textual conventions
Boris Zweimueller <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
perfect, thank you! Boris 2010/10/11 Dave Shield <[email protected]> > 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 > ------------------------------------------------------------------------------ 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