On mån, 2008-04-14 at 13:57 +0100, Alex Bennee wrote:
> Hi,
> 
> As noted in earlier messages the sizeof(oid) on a 64 bit machine is 8
> bytes due to the use of u_long. This patch ensures that an oid is always
> 32 bit by using the uint32_t type instead.
> 
> For us this also helps with using oid string between libsmi and net-snmp
> but I thing the change is valid none the less.
> 
> Comments?

We are using autoconf to ensure that uint32_t is available nowadays, so
I think the definition of oid should be simplified even further to

typedef uint32_t oid;

/MF



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to