On Mon, Feb 13, 2012 at 12:11 PM, rosy <[email protected]> wrote:

> Thanks for your reply. Actually by debugging the code what I am
> finding is that..its crashing inside the name_hash(..) func..while
> executing line
>
> hash += tolower((unsigned char)(*cp));
>
> I was assuming, there is some problem with my cross compiler..but when
> I just wrote a simple program with toLower..its working fine. Since I
> am totally new to SNMp so not getting any idea where how to proceed
> next.
>

You could try to rewrite that statement as follows:

hash += tolower(*cp & 0xff);

If that helps, it's a compiler bug.

Bart.
------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
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

Reply via email to