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
/
daemon
/
utils_llist.c
diff --git
a/src/daemon/utils_llist.c
b/src/daemon/utils_llist.c
index
4265286
..
40dd0ea
100644
(file)
--- a/
src/daemon/utils_llist.c
+++ b/
src/daemon/utils_llist.c
@@
-48,7
+48,7
@@
llist_t *llist_create (void)
{
llist_t *ret;
- ret =
(llist_t *) malloc (sizeof (llist_
t));
+ ret =
malloc (sizeof (*re
t));
if (ret == NULL)
return (NULL);
@@
-78,7
+78,7
@@
llentry_t *llentry_create (char *key, void *value)
{
llentry_t *e;
- e =
(llentry_t *) malloc (sizeof (llentry_t
));
+ e =
malloc (sizeof (*e
));
if (e)
{
e->key = key;