On Wed, 2011-02-23 at 23:31 +0100, Niels Baggesen wrote: > On Wed, Feb 23, 2011 at 11:22:16PM +0100, Magnus Fromreide wrote: > > Chunk 4 looks marvelous. How did this ever compile? > > I have no idea if this ever compiled :-) It is certainly some years > ago last time
:-) > > Chunk 5-12: Why print lengths as signed integers? > > Lazyness. Then you only have to change one thing. > > When it says > "%d", LENGTH_something > where LENGTH_something is a size_t you can either make it > "%d", (int)LENGTH_something > or > "%u", (unsigned int)LENGTH_something There is the third option as well: "%" NETSNMP_PRIz "u", LENGTH_something The drawback is that it is even longer but the advantage is that it is correct on both 32 and 64-bit platforms, but then, so are the other two versions if LENGTH_something is sufficiently small. > :-) > > /Niels > ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders