X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fping.c;h=88661e94ba5a5e60c99281a9fffc26d6c3265849;hb=354f9991530248e45207d236eb74c1cc3d5238ef;hp=da63d3a58c7bb9707b0b0d5763f0ee579b2c4dd5;hpb=4d6ff066b1c60a8e6654e4c74370ef951f37b5f3;p=collectd.git diff --git a/src/ping.c b/src/ping.c index da63d3a5..88661e94 100644 --- a/src/ping.c +++ b/src/ping.c @@ -399,7 +399,7 @@ static int start_thread (void) /* {{{ */ pthread_mutex_unlock (&ping_lock); return (-1); } - + pthread_mutex_unlock (&ping_lock); return (0); } /* }}} int start_thread */ @@ -483,7 +483,7 @@ static int ping_config (const char *key, const char *value) /* {{{ */ hostlist_t *hl; char *host; - hl = (hostlist_t *) malloc (sizeof (hostlist_t)); + hl = malloc (sizeof (*hl)); if (hl == NULL) { char errbuf[1024];