summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cve-check-tool
diff options
context:
space:
mode:
authorJussi Kukkonen <jussi.kukkonen@intel.com>2017-08-18 15:38:16 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-19 22:15:38 +0100
commita09aa675bb8757a677c3f8289b459aa4a064aa34 (patch)
tree56f0805fa0ef47c45f4d15d3fde3db46844b7908 /meta/recipes-devtools/cve-check-tool
parent782cdf14e3f2d5b321efa59d8d1b93554af86516 (diff)
downloadpoky-a09aa675bb8757a677c3f8289b459aa4a064aa34.tar.gz
cve-check-tool: Fix progress bar patch for curl 7.55
CURL_FORMAT_OFF_T does not seem to exist anymore, use CURL_FORMAT_CURL_OFF_T instead. This works with old and new curl. (From OE-Core rev: 5548f9c87c6a10cda2baf6f198762380e55f6ae2) Signed-off-by: Jussi Kukkonen <jussi.kukkonen@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/cve-check-tool')
-rw-r--r--meta/recipes-devtools/cve-check-tool/files/0001-print-progress-in-percent-when-downloading-CVE-db.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-devtools/cve-check-tool/files/0001-print-progress-in-percent-when-downloading-CVE-db.patch b/meta/recipes-devtools/cve-check-tool/files/0001-print-progress-in-percent-when-downloading-CVE-db.patch
index 0510e3ae0e..8ea6f686e3 100644
--- a/meta/recipes-devtools/cve-check-tool/files/0001-print-progress-in-percent-when-downloading-CVE-db.patch
+++ b/meta/recipes-devtools/cve-check-tool/files/0001-print-progress-in-percent-when-downloading-CVE-db.patch
@@ -38,7 +38,7 @@ index 06d4b30..0fe6d76 100644
38+ if (dltotal && percent && percent->end >= percent->start) { 38+ if (dltotal && percent && percent->end >= percent->start) {
39+ unsigned int diff = percent->end - percent->start; 39+ unsigned int diff = percent->end - percent->start;
40+ if (diff) { 40+ if (diff) {
41+ fprintf(stderr,"completed: "CURL_FORMAT_OFF_T"%%\r", percent->start + (diff * dlnow / dltotal)); 41+ fprintf(stderr,"completed: %"CURL_FORMAT_CURL_OFF_T"%%\r", percent->start + (diff * dlnow / dltotal));
42+ } 42+ }
43+ } 43+ }
44+ 44+