Current snapshot - compilation error
Levin, Alexandre
alevin at reveredata.com
Fri Mar 14 06:09:26 CET 2008
OS: FreeBSD 7
Error:
....
In file included from do_rrd.c:517:
rrd/do_memory.c:24: error: static declaration of
'string_compare' follows non-static declaration
/w1/src/hobbit/hobbit/snapshot/include/../lib/rbtr.h:70: error:
previous declaration of 'string_compare' was here
In file included from do_rrd.c:520:
rrd/do_netstat.c: In function 'do_netstat_rrd':
.....
Can be fixed by removing static int string_compare in
hobbitd/rrd/do_memory.c :
===================================================================
--- hobbitd/rrd/do_memory.c (revision 7646)
+++ hobbitd/rrd/do_memory.c (working copy)
@@ -21,10 +21,12 @@
*/
RbtHandle memhosts;
int memhosts_init = 0;
-static int string_compare(void *a, void *b) {
+/*
+static int string_compare(void *a, void *b)
+{
return strcmp((char *)a, (char *)b);
}
-
+*/
static int get_mem_percent(char *l)
{
char *p;
======================================================================
__________________________________
Alexandre Levin
More information about the Xymon
mailing list