aboutsummaryrefslogtreecommitdiff
path: root/src/service
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2024-03-03 10:28:56 +0100
committerChristian Grothoff <christian@grothoff.org>2024-03-03 10:28:56 +0100
commitc4f50c620f788a864733c766d5a1794eb42532e2 (patch)
tree11522be5d5a06ca7ee9603cebb1a5118bdea478c /src/service
parenta038babde56e84fb589eed891654005bdde3ab1f (diff)
downloadgnunet-c4f50c620f788a864733c766d5a1794eb42532e2.tar.gz
gnunet-c4f50c620f788a864733c766d5a1794eb42532e2.zip
-fix misc compiler warnings
Diffstat (limited to 'src/service')
-rw-r--r--src/service/peerstore/test_peerstore_api_data.conf4
-rw-r--r--src/service/peerstore/test_peerstore_api_iterate.c29
-rw-r--r--src/service/peerstore/test_peerstore_api_store.c30
-rw-r--r--src/service/peerstore/test_peerstore_api_watch.c2
4 files changed, 31 insertions, 34 deletions
diff --git a/src/service/peerstore/test_peerstore_api_data.conf b/src/service/peerstore/test_peerstore_api_data.conf
index 614d0cf5b..638d4a5af 100644
--- a/src/service/peerstore/test_peerstore_api_data.conf
+++ b/src/service/peerstore/test_peerstore_api_data.conf
@@ -8,7 +8,7 @@ UNIXPATH = $GNUNET_TMP/gnunet-service-peerstore.sock
8DATABASE = sqlite 8DATABASE = sqlite
9UNIX_MATCH_UID = NO 9UNIX_MATCH_UID = NO
10UNIX_MATCH_GID = YES 10UNIX_MATCH_GID = YES
11#PREFIX = xterm -e gdb --args 11#PREFIX = xterm -e gdb --args
12 12
13[peerstore-sqlite] 13[peerstore-sqlite]
14FILENAME = $GNUNET_TEST_HOME/gnunet-peerstore-sqlite.db 14FILENAME = $GNUNET_TEST_HOME/gnunet-peerstore-sqlite-ng.db
diff --git a/src/service/peerstore/test_peerstore_api_iterate.c b/src/service/peerstore/test_peerstore_api_iterate.c
index 8d072d418..ca3fdf133 100644
--- a/src/service/peerstore/test_peerstore_api_iterate.c
+++ b/src/service/peerstore/test_peerstore_api_iterate.c
@@ -21,7 +21,6 @@
21 * @file peerstore/test_peerstore_api_iterate.c 21 * @file peerstore/test_peerstore_api_iterate.c
22 * @brief testcase for peerstore iteration operation 22 * @brief testcase for peerstore iteration operation
23 */ 23 */
24#include "gnunet_common.h"
25#include "platform.h" 24#include "platform.h"
26#include "gnunet_util_lib.h" 25#include "gnunet_util_lib.h"
27#include "gnunet_testing_lib.h" 26#include "gnunet_testing_lib.h"
@@ -90,11 +89,11 @@ iter2_cb (void *cls,
90 GNUNET_assert (count == 2); 89 GNUNET_assert (count == 2);
91 count = 0; 90 count = 0;
92 ic = GNUNET_PEERSTORE_iteration_start (h, 91 ic = GNUNET_PEERSTORE_iteration_start (h,
93 ss, 92 ss,
94 NULL, 93 NULL,
95 NULL, 94 NULL,
96 &iter3_cb, 95 &iter3_cb,
97 NULL); 96 NULL);
98} 97}
99 98
100 99
@@ -118,11 +117,11 @@ iter1_cb (void *cls,
118 GNUNET_assert (count == 1); 117 GNUNET_assert (count == 1);
119 count = 0; 118 count = 0;
120 ic = GNUNET_PEERSTORE_iteration_start (h, 119 ic = GNUNET_PEERSTORE_iteration_start (h,
121 ss, 120 ss,
122 &p1, 121 &p1,
123 NULL, 122 NULL,
124 &iter2_cb, 123 &iter2_cb,
125 NULL); 124 NULL);
126} 125}
127 126
128 127
@@ -160,10 +159,10 @@ store_cont (void *cls, int success)
160 { 159 {
161 count = 0; 160 count = 0;
162 ic = GNUNET_PEERSTORE_iteration_start (h, 161 ic = GNUNET_PEERSTORE_iteration_start (h,
163 ss, 162 ss,
164 &p1, 163 &p1,
165 k1, 164 k1,
166 &iter1_cb, NULL); 165 &iter1_cb, NULL);
167 return; 166 return;
168 } 167 }
169 count++; 168 count++;
diff --git a/src/service/peerstore/test_peerstore_api_store.c b/src/service/peerstore/test_peerstore_api_store.c
index 1883310b9..d2ec9aad7 100644
--- a/src/service/peerstore/test_peerstore_api_store.c
+++ b/src/service/peerstore/test_peerstore_api_store.c
@@ -21,8 +21,8 @@
21 * @file peerstore/test_peerstore_api_store.c 21 * @file peerstore/test_peerstore_api_store.c
22 * @brief testcase for peerstore store operation 22 * @brief testcase for peerstore store operation
23 */ 23 */
24#include "gnunet_common.h"
25#include "platform.h" 24#include "platform.h"
25#include "gnunet_util_lib.h"
26#include "gnunet_peerstore_service.h" 26#include "gnunet_peerstore_service.h"
27#include "gnunet_testing_lib.h" 27#include "gnunet_testing_lib.h"
28 28
@@ -80,11 +80,11 @@ test3_cont (void *cls,
80 return; 80 return;
81 count = 0; 81 count = 0;
82 ic = GNUNET_PEERSTORE_iteration_start (h, 82 ic = GNUNET_PEERSTORE_iteration_start (h,
83 subsystem, 83 subsystem,
84 &pid, 84 &pid,
85 key, 85 key,
86 &test3_cont2, 86 &test3_cont2,
87 NULL); 87 NULL);
88} 88}
89 89
90 90
@@ -137,10 +137,10 @@ test2_cont (void *cls, int success)
137 return; 137 return;
138 count = 0; 138 count = 0;
139 ic = GNUNET_PEERSTORE_iteration_start (h, 139 ic = GNUNET_PEERSTORE_iteration_start (h,
140 subsystem, 140 subsystem,
141 &pid, key, 141 &pid, key,
142 &test2_cont2, 142 &test2_cont2,
143 NULL); 143 NULL);
144} 144}
145 145
146 146
@@ -195,11 +195,11 @@ test1_cont (void *cls, int success)
195 return; 195 return;
196 count = 0; 196 count = 0;
197 ic = GNUNET_PEERSTORE_iteration_start (h, 197 ic = GNUNET_PEERSTORE_iteration_start (h,
198 subsystem, 198 subsystem,
199 &pid, 199 &pid,
200 key, 200 key,
201 &test1_cont2, 201 &test1_cont2,
202 NULL); 202 NULL);
203} 203}
204 204
205 205
diff --git a/src/service/peerstore/test_peerstore_api_watch.c b/src/service/peerstore/test_peerstore_api_watch.c
index 9f547f2dd..90f1180f8 100644
--- a/src/service/peerstore/test_peerstore_api_watch.c
+++ b/src/service/peerstore/test_peerstore_api_watch.c
@@ -21,8 +21,6 @@
21 * @file peerstore/test_peerstore_api_watch.c 21 * @file peerstore/test_peerstore_api_watch.c
22 * @brief testcase for peerstore watch functionality 22 * @brief testcase for peerstore watch functionality
23 */ 23 */
24#include "gnunet_common.h"
25#include "gnunet_time_lib.h"
26#include "platform.h" 24#include "platform.h"
27#include "gnunet_util_lib.h" 25#include "gnunet_util_lib.h"
28#include "gnunet_testing_lib.h" 26#include "gnunet_testing_lib.h"