diff options
Diffstat (limited to 'src/fs/fs_api.c')
-rw-r--r-- | src/fs/fs_api.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fs/fs_api.c b/src/fs/fs_api.c index 72d5eab15..3b8d125ad 100644 --- a/src/fs/fs_api.c +++ b/src/fs/fs_api.c | |||
@@ -371,7 +371,7 @@ GNUNET_FS_make_top (struct GNUNET_FS_Handle *h, SuspendSignalFunction ssf, | |||
371 | { | 371 | { |
372 | struct TopLevelActivity *ret; | 372 | struct TopLevelActivity *ret; |
373 | 373 | ||
374 | ret = GNUNET_malloc (sizeof (struct TopLevelActivity)); | 374 | ret = GNUNET_new (struct TopLevelActivity); |
375 | ret->ssf = ssf; | 375 | ret->ssf = ssf; |
376 | ret->ssf_cls = ssf_cls; | 376 | ret->ssf_cls = ssf_cls; |
377 | GNUNET_CONTAINER_DLL_insert (h->top_head, h->top_tail, ret); | 377 | GNUNET_CONTAINER_DLL_insert (h->top_head, h->top_tail, ret); |
@@ -852,7 +852,7 @@ deserialize_fi_node (struct GNUNET_FS_Handle *h, const char *fn, | |||
852 | GNUNET_break (0); | 852 | GNUNET_break (0); |
853 | return NULL; | 853 | return NULL; |
854 | } | 854 | } |
855 | ret = GNUNET_malloc (sizeof (struct GNUNET_FS_FileInformation)); | 855 | ret = GNUNET_new (struct GNUNET_FS_FileInformation); |
856 | ret->h = h; | 856 | ret->h = h; |
857 | ksks = NULL; | 857 | ksks = NULL; |
858 | chks = NULL; | 858 | chks = NULL; |
@@ -1769,7 +1769,7 @@ read_download_request (struct GNUNET_BIO_ReadHandle *rh) | |||
1769 | struct DownloadRequest *dr; | 1769 | struct DownloadRequest *dr; |
1770 | unsigned int i; | 1770 | unsigned int i; |
1771 | 1771 | ||
1772 | dr = GNUNET_malloc (sizeof (struct DownloadRequest)); | 1772 | dr = GNUNET_new (struct DownloadRequest); |
1773 | if ((GNUNET_OK != GNUNET_BIO_read_int32 (rh, &dr->state)) || | 1773 | if ((GNUNET_OK != GNUNET_BIO_read_int32 (rh, &dr->state)) || |
1774 | (GNUNET_OK != GNUNET_BIO_read_int64 (rh, &dr->offset)) || | 1774 | (GNUNET_OK != GNUNET_BIO_read_int64 (rh, &dr->offset)) || |
1775 | (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &dr->num_children)) || | 1775 | (GNUNET_OK != GNUNET_BIO_read_int32 (rh, &dr->num_children)) || |
@@ -2127,7 +2127,7 @@ deserialize_unindex_file (void *cls, const char *filename) | |||
2127 | char *uris; | 2127 | char *uris; |
2128 | uint32_t state; | 2128 | uint32_t state; |
2129 | 2129 | ||
2130 | uc = GNUNET_malloc (sizeof (struct GNUNET_FS_UnindexContext)); | 2130 | uc = GNUNET_new (struct GNUNET_FS_UnindexContext); |
2131 | uc->h = h; | 2131 | uc->h = h; |
2132 | uc->serialization = get_serialization_short_name (filename); | 2132 | uc->serialization = get_serialization_short_name (filename); |
2133 | rh = GNUNET_BIO_read_open (filename); | 2133 | rh = GNUNET_BIO_read_open (filename); |
@@ -2994,7 +2994,7 @@ GNUNET_FS_start (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
2994 | enum GNUNET_FS_OPTIONS opt; | 2994 | enum GNUNET_FS_OPTIONS opt; |
2995 | va_list ap; | 2995 | va_list ap; |
2996 | 2996 | ||
2997 | ret = GNUNET_malloc (sizeof (struct GNUNET_FS_Handle)); | 2997 | ret = GNUNET_new (struct GNUNET_FS_Handle); |
2998 | ret->cfg = cfg; | 2998 | ret->cfg = cfg; |
2999 | ret->client_name = GNUNET_strdup (client_name); | 2999 | ret->client_name = GNUNET_strdup (client_name); |
3000 | ret->upcb = upcb; | 3000 | ret->upcb = upcb; |