diff --git a/src/ping.c b/src/ping.c
index da63d3a58c7bb9707b0b0d5763f0ee579b2c4dd5..e16ba07706b24a0eddee4c4a13a0d51d30bb6ef4 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
#include "configfile.h"
#include "utils_complain.h"
#include "configfile.h"
#include "utils_complain.h"
-#include <pthread.h>
#include <netinet/in.h>
#if HAVE_NETDB_H
# include <netdb.h> /* NI_MAXHOST */
#include <netinet/in.h>
#if HAVE_NETDB_H
# include <netdb.h> /* NI_MAXHOST */
pthread_mutex_unlock (&ping_lock);
return (-1);
}
pthread_mutex_unlock (&ping_lock);
return (-1);
}
-
+
pthread_mutex_unlock (&ping_lock);
return (0);
} /* }}} int start_thread */
pthread_mutex_unlock (&ping_lock);
return (0);
} /* }}} int start_thread */
hostlist_t *hl;
char *host;
hostlist_t *hl;
char *host;
- hl = (hostlist_t *) malloc (sizeof (hostlist_t));
+ hl = malloc (sizeof (*hl));
if (hl == NULL)
{
char errbuf[1024];
if (hl == NULL)
{
char errbuf[1024];