diff options
author | David Barksdale <amatus.amongus@gmail.com> | 2015-01-06 01:11:45 +0000 |
---|---|---|
committer | David Barksdale <amatus.amongus@gmail.com> | 2015-01-06 01:11:45 +0000 |
commit | 55182581d5e44ccc8d7495efd60a8f913d5b057d (patch) | |
tree | 219343d5a8d8c02bcb31dd10945dc98a491c340c /src/datastore/plugin_datastore_heap.c | |
parent | 56342b51c42bba7f627de23cde834994171fb267 (diff) | |
download | gnunet-55182581d5e44ccc8d7495efd60a8f913d5b057d.tar.gz gnunet-55182581d5e44ccc8d7495efd60a8f913d5b057d.zip |
Workaround emscripten bug in returning int64_t
Emscripten can't return a 64-bit integer from dynamically loaded code.
Diffstat (limited to 'src/datastore/plugin_datastore_heap.c')
-rw-r--r-- | src/datastore/plugin_datastore_heap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_heap.c b/src/datastore/plugin_datastore_heap.c index 8f7f3d1de..09b3fd416 100644 --- a/src/datastore/plugin_datastore_heap.c +++ b/src/datastore/plugin_datastore_heap.c | |||
@@ -184,12 +184,13 @@ struct Plugin | |||
184 | * @param cls our "struct Plugin*" | 184 | * @param cls our "struct Plugin*" |
185 | * @return number of bytes used on disk | 185 | * @return number of bytes used on disk |
186 | */ | 186 | */ |
187 | static unsigned long long | 187 | static void |
188 | heap_plugin_estimate_size (void *cls) | 188 | heap_plugin_estimate_size (void *cls, unsigned long long *estimate) |
189 | { | 189 | { |
190 | struct Plugin *plugin = cls; | 190 | struct Plugin *plugin = cls; |
191 | 191 | ||
192 | return plugin->size; | 192 | if (NULL != estimate) |
193 | *estimate = plugin->size; | ||
193 | } | 194 | } |
194 | 195 | ||
195 | 196 | ||