From 55182581d5e44ccc8d7495efd60a8f913d5b057d Mon Sep 17 00:00:00 2001 From: David Barksdale Date: Tue, 6 Jan 2015 01:11:45 +0000 Subject: Workaround emscripten bug in returning int64_t Emscripten can't return a 64-bit integer from dynamically loaded code. --- src/datastore/plugin_datastore_template.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/datastore/plugin_datastore_template.c') 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 * @param cls our "struct Plugin*" * @return number of bytes used on disk */ -static unsigned long long -template_plugin_estimate_size (void *cls) +static void +template_plugin_estimate_size (void *cls, unsigned long long *estimate) { + if (NULL == estimate) + return; GNUNET_break (0); - return 0; + *estimate = 0; } -- cgit v1.2.3