diff --git a/src/ping.c b/src/ping.c
index da63d3a58c7bb9707b0b0d5763f0ee579b2c4dd5..88661e94ba5a5e60c99281a9fffc26d6c3265849 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
pthread_mutex_unlock (&ping_lock);
return (-1);
}
-
+
pthread_mutex_unlock (&ping_lock);
return (0);
} /* }}} int start_thread */
hostlist_t *hl;
char *host;
- hl = (hostlist_t *) malloc (sizeof (hostlist_t));
+ hl = malloc (sizeof (*hl));
if (hl == NULL)
{
char errbuf[1024];