aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Schanzenbach <schanzen@gnunet.org>2021-08-08 18:48:54 +0200
committerMartin Schanzenbach <schanzen@gnunet.org>2021-08-08 18:48:54 +0200
commitb21d106cc36aea6e87aebd9c77a30f33286249e1 (patch)
treef64e6523c5538566f57062923717e799a43b681e /src
parent7f0c3bfadc259f3caaf65bb7668058a81526bd28 (diff)
downloadgnunet-b21d106cc36aea6e87aebd9c77a30f33286249e1.tar.gz
gnunet-b21d106cc36aea6e87aebd9c77a30f33286249e1.zip
-fix make dist; fix warningsv0.15.0
Diffstat (limited to 'src')
-rw-r--r--src/datacache/plugin_datacache_postgres.c4
-rw-r--r--src/datacache/plugin_datacache_sqlite.c2
-rw-r--r--src/include/Makefile.am1
-rw-r--r--src/testing/Makefile.am2
4 files changed, 5 insertions, 4 deletions
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,
306{ 306{
307 struct Plugin *plugin = cls; 307 struct Plugin *plugin = cls;
308 uint32_t type32 = (uint32_t) type; 308 uint32_t type32 = (uint32_t) type;
309 struct GNUNET_TIME_Absolute now; 309 struct GNUNET_TIME_Absolute now = { 0 };
310 struct GNUNET_PQ_QueryParam paramk[] = { 310 struct GNUNET_PQ_QueryParam paramk[] = {
311 GNUNET_PQ_query_param_auto_from_type (key), 311 GNUNET_PQ_query_param_auto_from_type (key),
312 GNUNET_PQ_query_param_absolute_time (&now), 312 GNUNET_PQ_query_param_absolute_time (&now),
@@ -424,7 +424,7 @@ postgres_plugin_get_random (void *cls,
424{ 424{
425 struct Plugin *plugin = cls; 425 struct Plugin *plugin = cls;
426 uint32_t off; 426 uint32_t off;
427 struct GNUNET_TIME_Absolute now; 427 struct GNUNET_TIME_Absolute now = { 0 };
428 struct GNUNET_TIME_Absolute expiration_time; 428 struct GNUNET_TIME_Absolute expiration_time;
429 size_t data_size; 429 size_t data_size;
430 void *data; 430 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,
468 struct GNUNET_TIME_Absolute exp; 468 struct GNUNET_TIME_Absolute exp;
469 size_t size; 469 size_t size;
470 void *dat; 470 void *dat;
471 uint32_t off; 471 uint32_t off = 0;
472 size_t psize; 472 size_t psize;
473 uint32_t type; 473 uint32_t type;
474 struct GNUNET_PeerIdentity *path; 474 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 = \
117 gnunet_testbed_logger_service.h \ 117 gnunet_testbed_logger_service.h \
118 gnunet_testbed_ng_service.h \ 118 gnunet_testbed_ng_service.h \
119 gnunet_testing_lib.h \ 119 gnunet_testing_lib.h \
120 gnunet_testing_plugin.h \
120 gnunet_testing_ng_lib.h \ 121 gnunet_testing_ng_lib.h \
121 gnunet_time_lib.h \ 122 gnunet_time_lib.h \
122 gnunet_transport_service.h \ 123 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 = \
15 libgnunettesting.la 15 libgnunettesting.la
16 16
17libgnunettesting_la_SOURCES = \ 17libgnunettesting_la_SOURCES = \
18 testing.c \ 18 testing.c testing.h \
19 testing_api_cmd_system_create.c \ 19 testing_api_cmd_system_create.c \
20 testing_api_cmd_batch.c \ 20 testing_api_cmd_batch.c \
21 testing_api_cmd_hello_world.c \ 21 testing_api_cmd_hello_world.c \