From 7f937e3781f36538d9864fa841822eecdaf0bf27 Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Thu, 18 Aug 2016 00:03:29 +0000 Subject: Use statement exprs instead of local function This change lets us compile with clang again. --- src/fs/fs_list_indexed.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/fs/fs_list_indexed.c') diff --git a/src/fs/fs_list_indexed.c b/src/fs/fs_list_indexed.c index 21385d40b..67183fce2 100644 --- a/src/fs/fs_list_indexed.c +++ b/src/fs/fs_list_indexed.c @@ -169,17 +169,17 @@ GNUNET_FS_get_indexed_files (struct GNUNET_FS_Handle *h, GNUNET_FS_IndexedFileProcessor iterator, void *iterator_cls) { - GNUNET_MQ_hd_fixed_size (index_info_end, - GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END, - struct GNUNET_MessageHeader); - GNUNET_MQ_hd_var_size (index_info, - GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY, - struct IndexInfoMessage); struct GNUNET_FS_GetIndexedContext *gic = GNUNET_new (struct GNUNET_FS_GetIndexedContext); struct GNUNET_MQ_MessageHandler handlers[] = { - make_index_info_end_handler (gic), - make_index_info_handler (gic), + GNUNET_MQ_hd_fixed_size (index_info_end, + GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_END, + struct GNUNET_MessageHeader, + gic), + GNUNET_MQ_hd_var_size (index_info, + GNUNET_MESSAGE_TYPE_FS_INDEX_LIST_ENTRY, + struct IndexInfoMessage, + gic), GNUNET_MQ_handler_end () }; struct GNUNET_MQ_Envelope *env; -- cgit v1.2.3