aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-02-08 21:40:36 +0100
committerChristian Grothoff <christian@grothoff.org>2021-02-08 21:40:36 +0100
commitf77a3092dd235935d04b935da9035252def26023 (patch)
treee9d27ab54a72244e117104bdbaf894b69d21f8cf /src
parenta8e50ec6854988a3c7c34961352f9a887dcfa4e0 (diff)
downloadgnunet-f77a3092dd235935d04b935da9035252def26023.tar.gz
gnunet-f77a3092dd235935d04b935da9035252def26023.zip
-minor style fixes
Diffstat (limited to 'src')
-rw-r--r--src/curl/curl.c21
-rw-r--r--src/include/gnunet_disk_lib.h1
2 files changed, 14 insertions, 8 deletions
diff --git a/src/curl/curl.c b/src/curl/curl.c
index 65e1a7183..deb14a926 100644
--- a/src/curl/curl.c
+++ b/src/curl/curl.c
@@ -389,18 +389,22 @@ setup_job_headers (struct GNUNET_CURL_Context *ctx,
389{ 389{
390 struct curl_slist *all_headers = NULL; 390 struct curl_slist *all_headers = NULL;
391 391
392 for (const struct curl_slist *curr = job_headers; curr != NULL; 392 for (const struct curl_slist *curr = job_headers;
393 NULL != curr;
393 curr = curr->next) 394 curr = curr->next)
394 { 395 {
395 GNUNET_assert (NULL != 396 GNUNET_assert (NULL !=
396 (all_headers = curl_slist_append (all_headers, curr->data))); 397 (all_headers = curl_slist_append (all_headers,
398 curr->data)));
397 } 399 }
398 400
399 for (const struct curl_slist *curr = ctx->common_headers; curr != NULL; 401 for (const struct curl_slist *curr = ctx->common_headers;
402 NULL != curr;
400 curr = curr->next) 403 curr = curr->next)
401 { 404 {
402 GNUNET_assert (NULL != 405 GNUNET_assert (NULL !=
403 (all_headers = curl_slist_append (all_headers, curr->data))); 406 (all_headers = curl_slist_append (all_headers,
407 curr->data)));
404 } 408 }
405 409
406 if (NULL != ctx->async_scope_id_header) 410 if (NULL != ctx->async_scope_id_header)
@@ -410,11 +414,12 @@ setup_job_headers (struct GNUNET_CURL_Context *ctx,
410 GNUNET_async_scope_get (&scope); 414 GNUNET_async_scope_get (&scope);
411 if (GNUNET_YES == scope.have_scope) 415 if (GNUNET_YES == scope.have_scope)
412 { 416 {
413 char *aid_header = NULL; 417 char *aid_header;
418
414 aid_header = 419 aid_header =
415 GNUNET_STRINGS_data_to_string_alloc (&scope.scope_id, 420 GNUNET_STRINGS_data_to_string_alloc (
416 sizeof( 421 &scope.scope_id,
417 struct GNUNET_AsyncScopeId)); 422 sizeof(struct GNUNET_AsyncScopeId));
418 GNUNET_assert (NULL != aid_header); 423 GNUNET_assert (NULL != aid_header);
419 GNUNET_assert (NULL != curl_slist_append (all_headers, aid_header)); 424 GNUNET_assert (NULL != curl_slist_append (all_headers, aid_header));
420 GNUNET_free (aid_header); 425 GNUNET_free (aid_header);
diff --git a/src/include/gnunet_disk_lib.h b/src/include/gnunet_disk_lib.h
index e45ab84f4..0fbdd7ab3 100644
--- a/src/include/gnunet_disk_lib.h
+++ b/src/include/gnunet_disk_lib.h
@@ -405,6 +405,7 @@ enum GNUNET_DISK_PipeFlags
405 * Configure read end to block when reading if set. 405 * Configure read end to block when reading if set.
406 */ 406 */
407 GNUNET_DISK_PF_BLOCKING_READ = 1, 407 GNUNET_DISK_PF_BLOCKING_READ = 1,
408
408 /** 409 /**
409 * Configure write end to block when writing if set. 410 * Configure write end to block when writing if set.
410 */ 411 */