X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fping.c;h=88661e94ba5a5e60c99281a9fffc26d6c3265849;hb=d41585ea72b7e2768c4dd507016ffd0cc3a6e130;hp=da63d3a58c7bb9707b0b0d5763f0ee579b2c4dd5;hpb=ccc4feb9576f520596508418f404beb000fde1aa;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];