aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_slist.c
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
committerLRN <lrn1986@gmail.com>2013-12-19 06:00:23 +0000
commite0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch)
treeecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/util/container_slist.c
parent92fd84dc7ef98452f848a62677c61a2b80b5835e (diff)
downloadgnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz
gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip
malloc -> new
Diffstat (limited to 'src/util/container_slist.c')
-rw-r--r--src/util/container_slist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/container_slist.c b/src/util/container_slist.c
index 10af916c3..e75c695c5 100644
--- a/src/util/container_slist.c
+++ b/src/util/container_slist.c
@@ -101,7 +101,7 @@ create_elem (enum GNUNET_CONTAINER_SListDisposition disp, const void *buf,
101 } 101 }
102 else 102 else
103 { 103 {
104 e = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_SList_Elem)); 104 e = GNUNET_new (struct GNUNET_CONTAINER_SList_Elem);
105 e->elem = (void *) buf; 105 e->elem = (void *) buf;
106 } 106 }
107 e->disp = disp; 107 e->disp = disp;
@@ -190,7 +190,7 @@ GNUNET_CONTAINER_slist_append (struct GNUNET_CONTAINER_SList *dst,
190struct GNUNET_CONTAINER_SList * 190struct GNUNET_CONTAINER_SList *
191GNUNET_CONTAINER_slist_create () 191GNUNET_CONTAINER_slist_create ()
192{ 192{
193 return GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_SList)); 193 return GNUNET_new (struct GNUNET_CONTAINER_SList);
194} 194}
195 195
196 196