Re: GCC warnings compiling mib2c output

Christopher Nelson <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
> CN> if (retval) {
> CN> ui = SNMP_MALLOC_STRUCT(undoInfo);
> ui-> len = retval_len;
> CN> memdup((u_char **) & ui->ptr,
> CN> (u_char *) retval, ui->len);
> CN> }
>
> CN> which I believe is mib2c output, not something we added to the
> CN> skeleton.  Has this warning been addressed in later versions?
>
> Later versions haven't changed the code output (at least for that style
> (iterator_access) of coding).  You didn't say what line it was
> complaining about, though.  I'm guessing the memdup line?

Yes, the memdup().

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.