diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-02-08 21:40:36 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-02-08 21:40:36 +0100 |
commit | f77a3092dd235935d04b935da9035252def26023 (patch) | |
tree | e9d27ab54a72244e117104bdbaf894b69d21f8cf /src/curl | |
parent | a8e50ec6854988a3c7c34961352f9a887dcfa4e0 (diff) | |
download | gnunet-f77a3092dd235935d04b935da9035252def26023.tar.gz gnunet-f77a3092dd235935d04b935da9035252def26023.zip |
-minor style fixes
Diffstat (limited to 'src/curl')
-rw-r--r-- | src/curl/curl.c | 21 |
1 files changed, 13 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); |