diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-03-03 11:07:57 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-03-03 11:07:57 +0100 |
commit | 311e3fb7455d3383685ff8d93a3861a6ea3f3c07 (patch) | |
tree | 20d68e03855a8fee067a2ec3ddf3d9437c4333f3 | |
parent | d5b3ae3b0f1d955df7a701d7f6a7546ff20cdc4d (diff) | |
download | gnunet-311e3fb7455d3383685ff8d93a3861a6ea3f3c07.tar.gz gnunet-311e3fb7455d3383685ff8d93a3861a6ea3f3c07.zip |
-indentation improvements
-rw-r--r-- | src/service/datastore/gnunet-service-datastore.c | 9 | ||||
-rw-r--r-- | src/service/datastore/perf_datastore_api.c | 3 | ||||
-rw-r--r-- | src/service/datastore/test_datastore_api_management.c | 13 |
3 files changed, 17 insertions, 8 deletions
diff --git a/src/service/datastore/gnunet-service-datastore.c b/src/service/datastore/gnunet-service-datastore.c index f45e71ee9..d42e16fe2 100644 --- a/src/service/datastore/gnunet-service-datastore.c +++ b/src/service/datastore/gnunet-service-datastore.c | |||
@@ -1078,11 +1078,13 @@ handle_remove (void *cls, const struct DataMessage *dm) | |||
1078 | * @param message the actual message | 1078 | * @param message the actual message |
1079 | */ | 1079 | */ |
1080 | static void | 1080 | static void |
1081 | handle_drop (void *cls, const struct GNUNET_MessageHeader *message) | 1081 | handle_drop (void *cls, |
1082 | const struct GNUNET_MessageHeader *message) | ||
1082 | { | 1083 | { |
1083 | struct GNUNET_SERVICE_Client *client = cls; | 1084 | struct GNUNET_SERVICE_Client *client = cls; |
1084 | 1085 | ||
1085 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Processing DROP request\n"); | 1086 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1087 | "Processing DROP request\n"); | ||
1086 | do_drop = GNUNET_YES; | 1088 | do_drop = GNUNET_YES; |
1087 | GNUNET_SERVICE_client_continue (client); | 1089 | GNUNET_SERVICE_client_continue (client); |
1088 | } | 1090 | } |
@@ -1330,7 +1332,8 @@ cleaning_task (void *cls) | |||
1330 | } | 1332 | } |
1331 | if (GNUNET_YES == do_drop) | 1333 | if (GNUNET_YES == do_drop) |
1332 | { | 1334 | { |
1333 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Dropping database!\n"); | 1335 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
1336 | "Dropping database!\n"); | ||
1334 | plugin->api->drop (plugin->api->cls); | 1337 | plugin->api->drop (plugin->api->cls); |
1335 | payload = 0; | 1338 | payload = 0; |
1336 | last_sync++; | 1339 | last_sync++; |
diff --git a/src/service/datastore/perf_datastore_api.c b/src/service/datastore/perf_datastore_api.c index f7d9fa544..3b5488168 100644 --- a/src/service/datastore/perf_datastore_api.c +++ b/src/service/datastore/perf_datastore_api.c | |||
@@ -507,7 +507,8 @@ run_continuation (void *cls) | |||
507 | break; | 507 | break; |
508 | 508 | ||
509 | case RP_ERROR: | 509 | case RP_ERROR: |
510 | GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES); | 510 | GNUNET_DATASTORE_disconnect (datastore, |
511 | GNUNET_YES); | ||
511 | GNUNET_free (crc); | 512 | GNUNET_free (crc); |
512 | ok = 1; | 513 | ok = 1; |
513 | break; | 514 | break; |
diff --git a/src/service/datastore/test_datastore_api_management.c b/src/service/datastore/test_datastore_api_management.c index b9b134fbc..de99d757d 100644 --- a/src/service/datastore/test_datastore_api_management.c +++ b/src/service/datastore/test_datastore_api_management.c | |||
@@ -262,7 +262,8 @@ run_continuation (void *cls) | |||
262 | case RP_DONE: | 262 | case RP_DONE: |
263 | GNUNET_assert (0 == crc->i); | 263 | GNUNET_assert (0 == crc->i); |
264 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Finished, disconnecting\n"); | 264 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Finished, disconnecting\n"); |
265 | GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES); | 265 | GNUNET_DATASTORE_disconnect (datastore, |
266 | GNUNET_YES); | ||
266 | GNUNET_free (crc); | 267 | GNUNET_free (crc); |
267 | ok = 0; | 268 | ok = 0; |
268 | } | 269 | } |
@@ -270,7 +271,9 @@ run_continuation (void *cls) | |||
270 | 271 | ||
271 | 272 | ||
272 | static void | 273 | static void |
273 | run_tests (void *cls, int success, struct GNUNET_TIME_Absolute min_expiration, | 274 | run_tests (void *cls, |
275 | int success, | ||
276 | struct GNUNET_TIME_Absolute min_expiration, | ||
274 | const char *msg) | 277 | const char *msg) |
275 | { | 278 | { |
276 | struct CpsRunContext *crc = cls; | 279 | struct CpsRunContext *crc = cls; |
@@ -280,11 +283,13 @@ run_tests (void *cls, int success, struct GNUNET_TIME_Absolute min_expiration, | |||
280 | fprintf (stderr, | 283 | fprintf (stderr, |
281 | "Test 'put' operation failed with error `%s' database likely not setup, skipping test.\n", | 284 | "Test 'put' operation failed with error `%s' database likely not setup, skipping test.\n", |
282 | msg); | 285 | msg); |
283 | GNUNET_DATASTORE_disconnect (datastore, GNUNET_YES); | 286 | GNUNET_DATASTORE_disconnect (datastore, |
287 | GNUNET_YES); | ||
284 | GNUNET_free (crc); | 288 | GNUNET_free (crc); |
285 | return; | 289 | return; |
286 | } | 290 | } |
287 | GNUNET_SCHEDULER_add_now (&run_continuation, crc); | 291 | GNUNET_SCHEDULER_add_now (&run_continuation, |
292 | crc); | ||
288 | } | 293 | } |
289 | 294 | ||
290 | 295 | ||