On Sun, 24 Jul 2011 04:18:26 +0400 Ilya wrote: IY> Why do we use long to store 32bit integers? Shouldn't we change it to be IY> int32_t? At very least we should make it 'transparent' to the MIB code: IY> it should be possible to register watched ASN_INTEGER instance with 4 IY> bytes size and this should work as expected. User (MIB code) doesn't IY> need to know internal details (type used internally to store the value).
This is a historical issue that occasionally causes hysterical discussion. I agree, it would make sense to use int32_t. But most of the code base in net-snmp uses long, so that's the standard. ------------------------------------------------------------------------------ Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/ _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
