gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 46/264: writeout_json: use curl_off_t printf() option for the ti


From: gnunet
Subject: [gnurl] 46/264: writeout_json: use curl_off_t printf() option for the time output
Date: Thu, 30 Apr 2020 16:05:49 +0200

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

nikita pushed a commit to branch master
in repository gnurl.

commit 8d9802b0aed12932612847f4267a42d08b7bfa71
Author: Daniel Stenberg <address@hidden>
AuthorDate: Tue Mar 17 23:29:10 2020 +0100

    writeout_json: use curl_off_t printf() option for the time output
    
    Follow-up to: 04c03416e68fd635a15
    
    Closes #5115
---
 src/tool_writeout_json.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tool_writeout_json.c b/src/tool_writeout_json.c
index 703cbbde8..70235c209 100644
--- a/src/tool_writeout_json.c
+++ b/src/tool_writeout_json.c
@@ -84,7 +84,8 @@ static int writeTime(FILE *str, CURL *curl, const char *key, 
CURLINFO ci)
   if(CURLE_OK == curl_easy_getinfo(curl, ci, &val)) {
     curl_off_t s = val / 1000000l;
     curl_off_t ms = val % 1000000l;
-    fprintf(str, "\"%s\":%ld.%06ld", key, s, ms);
+    fprintf(str, "\"%s\":%" CURL_FORMAT_CURL_OFF_T
+            ".%06" CURL_FORMAT_CURL_OFF_T, key, s, ms);
     return 1;
   }
   return 0;

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



reply via email to

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