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_template.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_template.c')
-rw-r--r-- | src/datastore/plugin_datastore_template.c | 8 |
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 | */ |
50 | static unsigned long long | 50 | static void |
51 | template_plugin_estimate_size (void *cls) | 51 | template_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 | ||