projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #8 from collectd/master
[collectd.git]
/
src
/
ping.c
diff --git
a/src/ping.c
b/src/ping.c
index
da63d3a
..
88661e9
100644
(file)
--- 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 (-1);
}
-
+
pthread_mutex_unlock (&ping_lock);
return (0);
} /* }}} int start_thread */
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;
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];