>>>>> "MF" == Magnus Fromreide <[EMAIL PROTECTED]> writes:

MF> * chunk 2 in snmpUDPDomain.c which makes it stop using C99 struct
MF> initialization at the cost of doing actual assignments.

I actually always wondered at the portability of those anyway.  It's
probably safer.

MF> * chunk 4 in snmpSTDDomain.c where t->data_length was initialized
MF> from sizeof(netsnmp_transport_free). The C++ compiler disliked
MF> sizeof(function). I'd appreciate if Wes could comment on this
MF> chunk.

That looked broken anyway, so I'm not sure why it was like that.  Thus
the attached patch looks safe.

However, *had* it been a problem and we needed the length of the
function then I think any other pointer type probably would have
worked as I don't know of a system at the moment where the length of a
pointer to a function would differ from that of a pointer to a data location.
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to