On sön, 2007-01-07 at 20:55 +0100, Thomas Anders wrote: > Thomas Anders wrote: > > Thanks for the quick response. Committed. > > However, g++ (4.1.0) still doesn't seem to like snmp_service.c too much:
g++? I wasn't aware that we should write the implementations in the common subset of C and C++ but if that is the case then I could do so. All of the reports below are the result of code like aType* foo = malloc(sizeof(aType)); and that is perfectly valid C, but it could be changed to aType* foo = (aType*)malloc(sizeof(aType)); to move it into the common subset of C and C++. /MF > snmp_service.c: In function 'int netsnmp_register_default_domain(const char*, > const char*)': > snmp_service.c:35: error: invalid conversion from 'void*' to > 'netsnmp_lookup_domain*' > snmp_service.c: In function 'void netsnmp_register_user_domain(const char*, > char*)': > snmp_service.c:77: error: invalid conversion from 'void*' to 'char*' > snmp_service.c:78: error: invalid conversion from 'void*' to 'char*' > snmp_service.c:98: error: invalid conversion from 'void*' to > 'netsnmp_lookup_domain*' > snmp_service.c: In function 'int netsnmp_register_default_target(const char*, > const char*, const char*)': > snmp_service.c:195: error: invalid conversion from 'void*' to > 'netsnmp_lookup_target*' > snmp_service.c: In function 'void netsnmp_register_user_target(const char*, > char*)': > snmp_service.c:240: error: invalid conversion from 'void*' to 'char*' > snmp_service.c:241: error: invalid conversion from 'void*' to 'char*' > snmp_service.c:242: error: invalid conversion from 'void*' to 'char*' > snmp_service.c:265: error: invalid conversion from 'void*' to > 'netsnmp_lookup_target*' > > > +Thomas > ------------------------------------------------------------------------- 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
