The update to agent/kernel.[ch] introduced just before pushing pre3 have
differing prototypes for klookup, and cannot compile.
I suggest the following change
--- a/agent/kernel.c
+++ b/agent/kernel.c
@@ -201,7 +201,7 @@ klread(char *buf, int buflen)
* @return gives 1 on success and 0 on failure.
*/
int
-klookup(unsigned long off, char *target, size_t siz)
+klookup(unsigned long off, void *target, size_t siz)
{
long retsiz;
diff --git a/agent/kernel.h b/agent/kernel.h
index 68ec832..131687a 100644
--- a/agent/kernel.h
+++ b/agent/kernel.h
@@ -17,7 +17,7 @@
#ifdef NETSNMP_CAN_USE_NLIST
extern int init_kmem(const char *);
-extern int klookup(unsigned long, char *, size_t);
+extern int klookup(unsigned long, void *, size_t);
extern void free_kmem(void);
#define NETSNMP_KLOOKUP(x,y,z) klookup((unsigned long) x,y,z)
#else
(Note that there are two separate implementations for klookup, and the
one update here is not the one used by the BSDs)
/Niels
--
Niels Baggesen - @home - Ã…rhus - Denmark - [email protected]
The purpose of computing is insight, not numbers --- R W Hamming
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders