projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: cleanup malloc calls
[collectd.git]
/
src
/
gmond.c
diff --git
a/src/gmond.c
b/src/gmond.c
index
f86d8f7
..
9b5ceb7
100644
(file)
--- a/
src/gmond.c
+++ b/
src/gmond.c
@@
-454,7
+454,7
@@
static staging_entry_t *staging_entry_get (const char *host, /* {{{ */
return (se);
/* insert new entry */
- se =
(staging_entry_t *)
malloc (sizeof (*se));
+ se = malloc (sizeof (*se));
if (se == NULL)
return (NULL);
memset (se, 0, sizeof (*se));