[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet] 74/75: style
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet] 74/75: style |
Date: |
Thu, 09 Aug 2018 23:59:11 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 1ad7b69834fffc95e05354983009e435030c0861
Author: Schanzenbach, Martin <address@hidden>
AuthorDate: Thu Aug 9 23:51:46 2018 +0200
style
---
src/gns/plugin_rest_gns.c | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/src/gns/plugin_rest_gns.c b/src/gns/plugin_rest_gns.c
index 41b855743..fd2469577 100644
--- a/src/gns/plugin_rest_gns.c
+++ b/src/gns/plugin_rest_gns.c
@@ -200,7 +200,7 @@ do_error (void *cls)
*/
static void
handle_gns_response (void *cls,
- int was_gns,
+ int was_gns,
uint32_t rd_count,
const struct GNUNET_GNSRECORD_Data *rd)
{
@@ -223,7 +223,7 @@ handle_gns_response (void *cls,
for (uint32_t i=0;i<rd_count;i++)
{
if ((rd[i].record_type != handle->record_type) &&
- (GNUNET_GNSRECORD_TYPE_ANY != handle->record_type) )
+ (GNUNET_GNSRECORD_TYPE_ANY != handle->record_type) )
{
continue;
}
@@ -252,8 +252,8 @@ handle_gns_response (void *cls,
*/
void
get_gns_cont (struct GNUNET_REST_RequestHandle *con_handle,
- const char* url,
- void *cls)
+ const char* url,
+ void *cls)
{
struct RequestHandle *handle = cls;
struct GNUNET_HashCode key;
@@ -261,11 +261,11 @@ get_gns_cont (struct GNUNET_REST_RequestHandle
*con_handle,
char *name;
GNUNET_CRYPTO_hash (GNUNET_REST_GNS_PARAM_NAME,
- strlen (GNUNET_REST_GNS_PARAM_NAME),
- &key);
+ strlen (GNUNET_REST_GNS_PARAM_NAME),
+ &key);
if ( GNUNET_NO
- == GNUNET_CONTAINER_multihashmap_contains (con_handle->url_param_map,
- &key))
+ == GNUNET_CONTAINER_multihashmap_contains (con_handle->url_param_map,
+ &key))
{
handle->emsg = GNUNET_strdup("Parameter name is missing");
GNUNET_SCHEDULER_add_now (&do_error, handle);
@@ -282,11 +282,11 @@ get_gns_cont (struct GNUNET_REST_RequestHandle
*con_handle,
handle->record_type = UINT32_MAX;
GNUNET_CRYPTO_hash (GNUNET_REST_GNS_PARAM_RECORD_TYPE,
- strlen (GNUNET_REST_GNS_PARAM_RECORD_TYPE),
- &key);
+ strlen (GNUNET_REST_GNS_PARAM_RECORD_TYPE),
+ &key);
if ( GNUNET_YES
- == GNUNET_CONTAINER_multihashmap_contains (con_handle->url_param_map,
- &key))
+ == GNUNET_CONTAINER_multihashmap_contains (con_handle->url_param_map,
+ &key))
{
record_type = GNUNET_CONTAINER_multihashmap_get
(con_handle->url_param_map, &key);
handle->record_type = GNUNET_GNSRECORD_typename_to_number(record_type);
@@ -307,11 +307,11 @@ get_gns_cont (struct GNUNET_REST_RequestHandle
*con_handle,
}
handle->gns_lookup = GNUNET_GNS_lookup_with_tld (handle->gns,
- handle->name,
- handle->record_type,
- GNUNET_NO,
- &handle_gns_response,
- handle);
+ handle->name,
+ handle->record_type,
+ GNUNET_NO,
+ &handle_gns_response,
+ handle);
return;
}
@@ -382,17 +382,17 @@ init_cont (struct RequestHandle *handle)
*/
static void
rest_process_request(struct GNUNET_REST_RequestHandle *rest_handle,
- GNUNET_REST_ResultProcessor proc,
- void *proc_cls)
+ GNUNET_REST_ResultProcessor proc,
+ void *proc_cls)
{
struct RequestHandle *handle = GNUNET_new (struct RequestHandle);
-
+
handle->response_code = 0;
handle->timeout = GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS,
60);
handle->proc_cls = proc_cls;
handle->proc = proc;
handle->rest_handle = rest_handle;
-
+
handle->url = GNUNET_strdup (rest_handle->url);
if (handle->url[strlen (handle->url)-1] == '/')
handle->url[strlen (handle->url)-1] = '\0';
@@ -404,7 +404,7 @@ rest_process_request(struct GNUNET_REST_RequestHandle
*rest_handle,
GNUNET_SCHEDULER_add_delayed (handle->timeout,
&do_error,
handle);
-
+
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Connected\n");
}
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnunet] 68/75: fix gns and identity test script, (continued)
- [GNUnet-SVN] [gnunet] 68/75: fix gns and identity test script, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 57/75: -fix identity file, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 72/75: Peerinfo Rest API finished, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 59/75: -wip namestore api, changed adding gnsrecord, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 71/75: -fix added timeout for gns Rest plugin, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 67/75: GNS REST API finished, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 50/75: -wip fix gns, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 70/75: Namestore Rest API finished, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 65/75: add peerinfo rest api, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 73/75: -Merge branch 'master' into gsoc2018/rest_api, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 74/75: style,
gnunet <=
- [GNUnet-SVN] [gnunet] 33/75: -Merge branch 'master' of ssh://gnunet.org/gnunet into gsoc2018/rest_api, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 63/75: -wip peerinfo, async call work in progress, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 69/75: -wip namestore, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 42/75: Merge branch 'master' of gnunet.org:gnunet, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 66/75: Identity REST API finished, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 52/75: Identity+GNS Rest changed and fixed, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 55/75: -wip namestore, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 32/75: documentation: user + developer changes, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 60/75: change namestore, json handling; fix identity, gns, gnunet, 2018/08/09
- [GNUnet-SVN] [gnunet] 12/75: documentation: Remove installation, gnunet, 2018/08/09