diff options
Diffstat (limited to 'src/block/plugin_block_test.c')
-rw-r--r-- | src/block/plugin_block_test.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/block/plugin_block_test.c b/src/block/plugin_block_test.c index eaffa361f..130c2ac3c 100644 --- a/src/block/plugin_block_test.c +++ b/src/block/plugin_block_test.c | |||
@@ -98,7 +98,7 @@ block_plugin_test_evaluate (void *cls, enum GNUNET_BLOCK_Type type, | |||
98 | * @param block block to get the key for | 98 | * @param block block to get the key for |
99 | * @param block_size number of bytes in @a block | 99 | * @param block_size number of bytes in @a block |
100 | * @param key set to the key (query) for the given block | 100 | * @param key set to the key (query) for the given block |
101 | * @return GNUNET_OK on success, GNUNET_SYSERR if type not supported | 101 | * @return #GNUNET_OK on success, #GNUNET_SYSERR if type not supported |
102 | * (or if extracting a key from a block of this type does not work) | 102 | * (or if extracting a key from a block of this type does not work) |
103 | */ | 103 | */ |
104 | static int | 104 | static int |
@@ -114,6 +114,9 @@ block_plugin_test_get_key (void *cls, enum GNUNET_BLOCK_Type type, | |||
114 | 114 | ||
115 | /** | 115 | /** |
116 | * Entry point for the plugin. | 116 | * Entry point for the plugin. |
117 | * | ||
118 | * @param cls NULL | ||
119 | * @return the exported block API | ||
117 | */ | 120 | */ |
118 | void * | 121 | void * |
119 | libgnunet_plugin_block_test_init (void *cls) | 122 | libgnunet_plugin_block_test_init (void *cls) |
@@ -125,7 +128,7 @@ libgnunet_plugin_block_test_init (void *cls) | |||
125 | }; | 128 | }; |
126 | struct GNUNET_BLOCK_PluginFunctions *api; | 129 | struct GNUNET_BLOCK_PluginFunctions *api; |
127 | 130 | ||
128 | api = GNUNET_malloc (sizeof (struct GNUNET_BLOCK_PluginFunctions)); | 131 | api = GNUNET_new (struct GNUNET_BLOCK_PluginFunctions); |
129 | api->evaluate = &block_plugin_test_evaluate; | 132 | api->evaluate = &block_plugin_test_evaluate; |
130 | api->get_key = &block_plugin_test_get_key; | 133 | api->get_key = &block_plugin_test_get_key; |
131 | api->types = types; | 134 | api->types = types; |
@@ -135,6 +138,9 @@ libgnunet_plugin_block_test_init (void *cls) | |||
135 | 138 | ||
136 | /** | 139 | /** |
137 | * Exit point from the plugin. | 140 | * Exit point from the plugin. |
141 | * | ||
142 | * @param cls the return value from #libgnunet_plugin_block_test_init | ||
143 | * @return NULL | ||
138 | */ | 144 | */ |
139 | void * | 145 | void * |
140 | libgnunet_plugin_block_test_done (void *cls) | 146 | libgnunet_plugin_block_test_done (void *cls) |