From: Ruben Kerkhof Date: Sat, 15 Dec 2018 17:33:00 +0000 (+0100) Subject: gmond plugin: fix minor style issues X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=bbf34ecad8e0d8e50fd44cd3c4433b76385564ce;p=collectd.git gmond plugin: fix minor style issues --- diff --git a/src/gmond.c b/src/gmond.c index 291dfadb..3312f96e 100644 --- a/src/gmond.c +++ b/src/gmond.c @@ -413,7 +413,7 @@ static staging_entry_t *staging_entry_get(const char *host, /* {{{ */ sstrncpy(se->key, key, sizeof(se->key)); se->flags = 0; - se->vl.values = (value_t *)calloc(values_len, sizeof(*se->vl.values)); + se->vl.values = calloc(values_len, sizeof(*se->vl.values)); if (se->vl.values == NULL) { sfree(se); return NULL; @@ -743,8 +743,8 @@ static void *mc_receive_thread(void *arg) /* {{{ */ return (void *)-1; } - mc_receive_sockets = (struct pollfd *)calloc(mc_receive_sockets_num, - sizeof(*mc_receive_sockets)); + mc_receive_sockets = + calloc(mc_receive_sockets_num, sizeof(*mc_receive_sockets)); if (mc_receive_sockets == NULL) { ERROR("gmond plugin: calloc failed."); for (size_t i = 0; i < mc_receive_sockets_num; i++)