diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-08-01 00:24:11 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-08-01 00:24:11 +0200 |
commit | 8f7388042c433049b2b49c306caa80378e635c4d (patch) | |
tree | 87d1dff90a059f05349c1a326849ad4f459b8259 /src/exchange | |
parent | 5b2efa2b0694f2e1d16af15c7c47cbd26f7c64c1 (diff) | |
download | exchange-8f7388042c433049b2b49c306caa80378e635c4d.tar.gz exchange-8f7388042c433049b2b49c306caa80378e635c4d.tar.bz2 exchange-8f7388042c433049b2b49c306caa80378e635c4d.zip |
fix indent
Diffstat (limited to 'src/exchange')
-rw-r--r-- | src/exchange/taler-exchange-httpd.c | 8 | ||||
-rw-r--r-- | src/exchange/taler-exchange-httpd_keystate.c | 24 |
2 files changed, 16 insertions, 16 deletions
diff --git a/src/exchange/taler-exchange-httpd.c b/src/exchange/taler-exchange-httpd.c index fe484979d..f0059736f 100644 --- a/src/exchange/taler-exchange-httpd.c +++ b/src/exchange/taler-exchange-httpd.c @@ -417,7 +417,8 @@ handle_mhd_request (void *cls, struct GNUNET_AsyncScopeSave old_scope; const char *correlation_id = NULL; - if (NULL == ecls) { + if (NULL == ecls) + { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Handling new request\n"); /* We're in a new async scope! */ ecls = *con_cls = GNUNET_new (struct ExchangeHttpRequestClosure); @@ -435,9 +436,7 @@ handle_mhd_request (void *cls, } inner_cls = &ecls->opaque_post_parsing_context; - GNUNET_async_scope_enter (&ecls->async_scope_id, &old_scope); - if (NULL != correlation_id) GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Handling request (%s) for URL '%s', correlation_id=%s\n", @@ -462,6 +461,8 @@ handle_mhd_request (void *cls, (0 == strcasecmp (method, rh->method)) ) ) { + /* FIXME: consider caching 'rh' in '**connection_cls' to + avoid repeated lookup! */ ret = rh->handler (rh, connection, inner_cls, @@ -477,7 +478,6 @@ handle_mhd_request (void *cls, upload_data, upload_data_size); GNUNET_async_scope_restore (&old_scope); - return ret; } diff --git a/src/exchange/taler-exchange-httpd_keystate.c b/src/exchange/taler-exchange-httpd_keystate.c index eaa3fa496..6a69a3d55 100644 --- a/src/exchange/taler-exchange-httpd_keystate.c +++ b/src/exchange/taler-exchange-httpd_keystate.c @@ -1044,8 +1044,8 @@ reload_auditor_iter (void *cls, &dke->dki->issue.properties, sizeof (struct TALER_DenominationKeyValidityPS))) { - /* if the hash is the same, the properties should also match! */ - GNUNET_break (0); + /* if the hash is the same, the properties should also match! */ + GNUNET_break (0); continue; } as = GNUNET_malloc (sizeof (struct AuditorSignature) + @@ -2252,14 +2252,14 @@ TEH_KS_handler_keys (struct TEH_RequestHandler *rh, unsigned long long cherrypickn; if (1 != - sscanf (have_cherrypick, - "%llu", - &cherrypickn)) + sscanf (have_cherrypick, + "%llu", + &cherrypickn)) { GNUNET_break_op (0); return TEH_RESPONSE_reply_arg_invalid (connection, - TALER_EC_KEYS_HAVE_NOT_NUMERIC, - "last_issue_date"); + TALER_EC_KEYS_HAVE_NOT_NUMERIC, + "last_issue_date"); } last_issue_date.abs_value_us = (uint64_t) cherrypickn * 1000000LLU; } @@ -2276,14 +2276,14 @@ TEH_KS_handler_keys (struct TEH_RequestHandler *rh, unsigned long long fakenown; if (1 != - sscanf (have_fakenow, - "%llu", - &fakenown)) + sscanf (have_fakenow, + "%llu", + &fakenown)) { GNUNET_break_op (0); return TEH_RESPONSE_reply_arg_invalid (connection, - TALER_EC_KEYS_HAVE_NOT_NUMERIC, - "now"); + TALER_EC_KEYS_HAVE_NOT_NUMERIC, + "now"); } now.abs_value_us = (uint64_t) fakenown * 1000000LLU; } |