projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #1807 from matteocontrini/master
[collectd.git]
/
src
/
gmond.c
diff --git
a/src/gmond.c
b/src/gmond.c
index
67e0406
..
728162e
100644
(file)
--- a/
src/gmond.c
+++ b/
src/gmond.c
@@
-30,9
+30,6
@@
#include "configfile.h"
#include "utils_avltree.h"
#include "configfile.h"
#include "utils_avltree.h"
-#if HAVE_PTHREAD_H
-# include <pthread.h>
-#endif
#if HAVE_NETDB_H
# include <netdb.h>
#endif
#if HAVE_NETDB_H
# include <netdb.h>
#endif
@@
-717,7
+714,7
@@
static int mc_handle_metadata_msg (Ganglia_metadata_msg *msg) /* {{{ */
msg_meta = msg->Ganglia_metadata_msg_u.gfull;
msg_meta = msg->Ganglia_metadata_msg_u.gfull;
- if (msg_meta.metric.tmax
<
= 0)
+ if (msg_meta.metric.tmax
=
= 0)
return (-1);
map = metric_lookup (msg_meta.metric_id.name);
return (-1);
map = metric_lookup (msg_meta.metric_id.name);
@@
-1110,7
+1107,7
@@
static int gmond_init (void) /* {{{ */
(mc_receive_port != NULL) ? mc_receive_port : MC_RECEIVE_PORT_DEFAULT,
/* listen = */ 0);
(mc_receive_port != NULL) ? mc_receive_port : MC_RECEIVE_PORT_DEFAULT,
/* listen = */ 0);
- staging_tree = c_avl_create ((
void *
) strcmp);
+ staging_tree = c_avl_create ((
int (*) (const void *, const void *)
) strcmp);
if (staging_tree == NULL)
{
ERROR ("gmond plugin: c_avl_create failed.");
if (staging_tree == NULL)
{
ERROR ("gmond plugin: c_avl_create failed.");