gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-twister] branch master updated: fix format string


From: gnunet
Subject: [GNUnet-SVN] [taler-twister] branch master updated: fix format string
Date: Sat, 08 Jun 2019 20:00:24 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository twister.

The following commit(s) were added to refs/heads/master by this push:
     new 0f7eb58  fix format string
0f7eb58 is described below

commit 0f7eb585996e81819ca6c7ed3a505f92c2014fcf
Author: Christian Grothoff <address@hidden>
AuthorDate: Sat Jun 8 20:00:22 2019 +0200

    fix format string
---
 src/twister/taler-twister-service.c | 23 +++++++++++------------
 1 file 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;
   }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]