From b21d106cc36aea6e87aebd9c77a30f33286249e1 Mon Sep 17 00:00:00 2001 From: Martin Schanzenbach Date: Sun, 8 Aug 2021 18:48:54 +0200 Subject: -fix make dist; fix warnings --- src/datacache/plugin_datacache_postgres.c | 4 ++-- src/datacache/plugin_datacache_sqlite.c | 2 +- src/include/Makefile.am | 1 + src/testing/Makefile.am | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/datacache/plugin_datacache_postgres.c b/src/datacache/plugin_datacache_postgres.c index 724324ca4..6613ae928 100644 --- a/src/datacache/plugin_datacache_postgres.c +++ b/src/datacache/plugin_datacache_postgres.c @@ -306,7 +306,7 @@ postgres_plugin_get (void *cls, { struct Plugin *plugin = cls; uint32_t type32 = (uint32_t) type; - struct GNUNET_TIME_Absolute now; + struct GNUNET_TIME_Absolute now = { 0 }; struct GNUNET_PQ_QueryParam paramk[] = { GNUNET_PQ_query_param_auto_from_type (key), GNUNET_PQ_query_param_absolute_time (&now), @@ -424,7 +424,7 @@ postgres_plugin_get_random (void *cls, { struct Plugin *plugin = cls; uint32_t off; - struct GNUNET_TIME_Absolute now; + struct GNUNET_TIME_Absolute now = { 0 }; struct GNUNET_TIME_Absolute expiration_time; size_t data_size; void *data; diff --git a/src/datacache/plugin_datacache_sqlite.c b/src/datacache/plugin_datacache_sqlite.c index a7da6b068..66ff9e82c 100644 --- a/src/datacache/plugin_datacache_sqlite.c +++ b/src/datacache/plugin_datacache_sqlite.c @@ -468,7 +468,7 @@ sqlite_plugin_get_random (void *cls, struct GNUNET_TIME_Absolute exp; size_t size; void *dat; - uint32_t off; + uint32_t off = 0; size_t psize; uint32_t type; struct GNUNET_PeerIdentity *path; diff --git a/src/include/Makefile.am b/src/include/Makefile.am index d15186342..16ff25350 100644 --- a/src/include/Makefile.am +++ b/src/include/Makefile.am @@ -117,6 +117,7 @@ gnunetinclude_HEADERS = \ gnunet_testbed_logger_service.h \ gnunet_testbed_ng_service.h \ gnunet_testing_lib.h \ + gnunet_testing_plugin.h \ gnunet_testing_ng_lib.h \ gnunet_time_lib.h \ gnunet_transport_service.h \ diff --git a/src/testing/Makefile.am b/src/testing/Makefile.am index 868e3fcec..8b28e6e23 100644 --- a/src/testing/Makefile.am +++ b/src/testing/Makefile.am @@ -15,7 +15,7 @@ lib_LTLIBRARIES = \ libgnunettesting.la libgnunettesting_la_SOURCES = \ - testing.c \ + testing.c testing.h \ testing_api_cmd_system_create.c \ testing_api_cmd_batch.c \ testing_api_cmd_hello_world.c \ -- cgit v1.2.3