X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_llist.c;h=40dd0eaad7563114c63936a922d3a74da8df2b1d;hb=1ebf2f31bd2e080e6f42de640f0a3899a61501c0;hp=4265286bdaf899dcb2bba34e97a712876d5455b0;hpb=6894d846ac42cbe88073db074d75279f5a6e31b8;p=collectd.git diff --git a/src/daemon/utils_llist.c b/src/daemon/utils_llist.c index 4265286b..40dd0eaa 100644 --- 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 (*ret)); 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;