diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-08 20:00:22 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-08 20:00:22 +0200 |
commit | 0f7eb585996e81819ca6c7ed3a505f92c2014fcf (patch) | |
tree | b10861e1149b915877ec248264d82d432be86298 | |
parent | 3540f39fb1a35714f23dedf5004e92c54f603d81 (diff) | |
download | twister-0f7eb585996e81819ca6c7ed3a505f92c2014fcf.tar.gz twister-0f7eb585996e81819ca6c7ed3a505f92c2014fcf.tar.bz2 twister-0f7eb585996e81819ca6c7ed3a505f92c2014fcf.zip |
fix format string
-rw-r--r-- | src/twister/taler-twister-service.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/twister/taler-twister-service.c b/src/twister/taler-twister-service.c index 5e1e8cb..8600c05 100644 --- a/src/twister/taler-twister-service.c +++ b/src/twister/taler-twister-service.c @@ -614,7 +614,7 @@ curl_upload_cb (void *buf, "Upload cb aborts: we are already downloading...\n"); return CURL_READFUNC_ABORT; } - + if ( (0 == hr->io_len) && (REQUEST_STATE_PROXY_UPLOAD_STARTED == hr->state) ) { @@ -929,7 +929,7 @@ con_val_iter (void *cls, { /* We don't take the host header as given in the request. * We'll instead put the proxied service's hostname in it*/ - return MHD_YES; + return MHD_YES; } if ((0 == strcmp (MHD_HTTP_HEADER_ACCEPT_ENCODING, @@ -948,7 +948,7 @@ con_val_iter (void *cls, TALER_LOG_INFO ("Do not re-set Content-Length for request (CURLOPT_POSTFIELDSIZE did)\n"); return MHD_YES; } - + GNUNET_asprintf (&hdr, "%s: %s", key, @@ -1385,15 +1385,14 @@ static void create_response_with_chaos_rate (struct HttpRequest *request) { uint64_t random; - void *resp_buf; size_t resp_len; random = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, 100); TALER_LOG_INFO ("p: %llu, random: %llu\n", - chaos_rate, - random); + (unsigned long long) chaos_rate, + (unsigned long long) random); if (random <= chaos_rate) { @@ -1408,13 +1407,13 @@ create_response_with_chaos_rate (struct HttpRequest *request) resp_len = request->io_len; resp_buf = request->io_buf; } - request->response = MHD_create_response_from_buffer (resp_len, resp_buf, MHD_RESPMEM_MUST_COPY); } + /** * Main MHD callback for handling requests. * @@ -1665,7 +1664,7 @@ create_response (void *cls, host_hdr = build_host_header (target_server_base_url); TALER_LOG_DEBUG ("Faking the host header, %s\n", - host_hdr); + host_hdr); curl_slist_append (hr->headers, host_hdr); GNUNET_free (host_hdr); @@ -2295,7 +2294,7 @@ parse_serving_mean (const struct GNUNET_CONFIGURATION_Handle *cfg, *port = (uint16_t) port_ull; return GNUNET_OK; } - + /* serving via unix */ if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_filename @@ -2331,11 +2330,11 @@ parse_serving_mean (const struct GNUNET_CONFIGURATION_Handle *cfg, "twister", "SERVE_UNIXMODE", "must be octal number"); - GNUNET_free (modestring); + GNUNET_free (modestring); return GNUNET_SYSERR; } - GNUNET_free (modestring); + GNUNET_free (modestring); return GNUNET_OK; @@ -2409,7 +2408,7 @@ run (void *cls, &serve_unixpath, &serve_unixmode)) { - GNUNET_break (0); + GNUNET_break (0); GNUNET_SCHEDULER_shutdown (); return; } |