]> code.ossystems Code Review - openembedded-core.git/commitdiff
cve-check-tool: Fix progress bar patch for curl 7.55
authorJussi Kukkonen <jussi.kukkonen@intel.com>
Fri, 18 Aug 2017 12:38:16 +0000 (15:38 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Aug 2017 22:51:39 +0000 (23:51 +0100)
CURL_FORMAT_OFF_T does not seem to exist anymore, use
CURL_FORMAT_CURL_OFF_T instead. This works with old and new curl.

Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/cve-check-tool/files/0001-print-progress-in-percent-when-downloading-CVE-db.patch

index 0510e3ae0e753d9eb19e463c38d79ff1623841f5..8ea6f686e3f8f12b40f41fa135b229ffacf92b4e 100644 (file)
@@ -38,7 +38,7 @@ index 06d4b30..0fe6d76 100644
 +        if (dltotal && percent && percent->end >= percent->start) {
 +                unsigned int diff = percent->end - percent->start;
 +                if (diff) {
-+                        fprintf(stderr,"completed: "CURL_FORMAT_OFF_T"%%\r", percent->start + (diff * dlnow / dltotal));
++                        fprintf(stderr,"completed: %"CURL_FORMAT_CURL_OFF_T"%%\r", percent->start + (diff * dlnow / dltotal));
 +                }
 +        }
 +