summaryrefslogtreecommitdiff
path: root/setup_native
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-09-28 11:56:03 +0200
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-10-02 08:20:44 +0000
commitd866c3af42bb32a328ce2fd7e460744e28efd08d (patch)
tree9e06c5d2b131d7b54d552c9655abf944882d0b3a /setup_native
parenta9483f7105b58b6d78c06aa5b3e6e4a3466ae8dc (diff)
cppcheck invalidPrintfArgType
signedness and long vs int corrections Change-Id: I67c6b9e05b16f5d8d4693879f1656db50dc7ec48 Reviewed-on: https://gerrit.libreoffice.org/29355 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'setup_native')
-rw-r--r--setup_native/source/win32/wintools/makecab/parseddf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup_native/source/win32/wintools/makecab/parseddf.c b/setup_native/source/win32/wintools/makecab/parseddf.c
index 98dfaa1d9bcd..bde5be4a9a9f 100644
--- a/setup_native/source/win32/wintools/makecab/parseddf.c
+++ b/setup_native/source/win32/wintools/makecab/parseddf.c
@@ -47,8 +47,8 @@ void trim(char * str)
void ddfLogProgress(DDFLOGLEVEL lvl, char * desc, unsigned int progress)
{
if (DdfVerb < lvl) return;
- if (progress == 0) printf(" %s: %3d%%", desc, progress);
- else if (progress > 0 && progress < 100) printf("\r %s: %3d%%", desc, progress);
+ if (progress == 0) printf(" %s: %3u%%", desc, progress);
+ else if (progress > 0 && progress < 100) printf("\r %s: %3u%%", desc, progress);
else if (progress == 100) printf("\r %s: 100%%\n", desc);
fflush(stdout);
}