[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: -minor style fixes
From: |
gnunet |
Subject: |
[gnunet] branch master updated: -minor style fixes |
Date: |
Mon, 08 Feb 2021 21:41:49 +0100 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new f77a3092d -minor style fixes
new 63884937d Merge branch 'master' of git+ssh://gnunet.org/gnunet
f77a3092d is described below
commit f77a3092dd235935d04b935da9035252def26023
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Mon Feb 8 21:40:36 2021 +0100
-minor style fixes
---
src/curl/curl.c | 21 +++++++++++++--------
src/include/gnunet_disk_lib.h | 1 +
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,
{
struct curl_slist *all_headers = NULL;
- for (const struct curl_slist *curr = job_headers; curr != NULL;
+ for (const struct curl_slist *curr = job_headers;
+ NULL != curr;
curr = curr->next)
{
GNUNET_assert (NULL !=
- (all_headers = curl_slist_append (all_headers,
curr->data)));
+ (all_headers = curl_slist_append (all_headers,
+ curr->data)));
}
- for (const struct curl_slist *curr = ctx->common_headers; curr != NULL;
+ for (const struct curl_slist *curr = ctx->common_headers;
+ NULL != curr;
curr = curr->next)
{
GNUNET_assert (NULL !=
- (all_headers = curl_slist_append (all_headers,
curr->data)));
+ (all_headers = curl_slist_append (all_headers,
+ curr->data)));
}
if (NULL != ctx->async_scope_id_header)
@@ -410,11 +414,12 @@ setup_job_headers (struct GNUNET_CURL_Context *ctx,
GNUNET_async_scope_get (&scope);
if (GNUNET_YES == scope.have_scope)
{
- char *aid_header = NULL;
+ char *aid_header;
+
aid_header =
- GNUNET_STRINGS_data_to_string_alloc (&scope.scope_id,
- sizeof(
- struct GNUNET_AsyncScopeId));
+ GNUNET_STRINGS_data_to_string_alloc (
+ &scope.scope_id,
+ sizeof(struct GNUNET_AsyncScopeId));
GNUNET_assert (NULL != aid_header);
GNUNET_assert (NULL != curl_slist_append (all_headers, aid_header));
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
* Configure read end to block when reading if set.
*/
GNUNET_DISK_PF_BLOCKING_READ = 1,
+
/**
* Configure write end to block when writing if set.
*/
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: -minor style fixes,
gnunet <=