aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/plugin_datastore_template.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus.amongus@gmail.com>2015-01-06 01:11:45 +0000
committerDavid Barksdale <amatus.amongus@gmail.com>2015-01-06 01:11:45 +0000
commit55182581d5e44ccc8d7495efd60a8f913d5b057d (patch)
tree219343d5a8d8c02bcb31dd10945dc98a491c340c /src/datastore/plugin_datastore_template.c
parent56342b51c42bba7f627de23cde834994171fb267 (diff)
downloadgnunet-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_template.c')
-rw-r--r--src/datastore/plugin_datastore_template.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/datastore/plugin_datastore_template.c b/src/datastore/plugin_datastore_template.c
index 5e577b1bc..cf4b2ec99 100644
--- a/src/datastore/plugin_datastore_template.c
+++ b/src/datastore/plugin_datastore_template.c
@@ -47,11 +47,13 @@ struct Plugin
47 * @param cls our "struct Plugin*" 47 * @param cls our "struct Plugin*"
48 * @return number of bytes used on disk 48 * @return number of bytes used on disk
49 */ 49 */
50static unsigned long long 50static void
51template_plugin_estimate_size (void *cls) 51template_plugin_estimate_size (void *cls, unsigned long long *estimate)
52{ 52{
53 if (NULL == estimate)
54 return;
53 GNUNET_break (0); 55 GNUNET_break (0);
54 return 0; 56 *estimate = 0;
55} 57}
56 58
57 59