[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Current snapshot - compilation error
- To: <hobbit (at) hswn.dk>
- Subject: Current snapshot - compilation error
- From: "Levin, Alexandre" <alevin (at) reveredata.com>
- Date: Thu, 13 Mar 2008 22:09:26 -0700
- Thread-index: AciFmfPWNggYgk6/Q7KdZk9OMNYmZw==
- Thread-topic: Current snapshot - compilation error
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