aboutsummaryrefslogtreecommitdiff
path: root/archive-tar.c
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2015-10-23 08:02:52 +0200
committerJunio C Hamano <gitster@pobox.com>2015-10-23 10:17:53 -0700
commitd62c89afb278ab625dd399222ceb8d48b0358756 (patch)
tree1f4ba2daeea4d27e126c1be48a81e343b9ccd9ec /archive-tar.c
parent0fb19906b5eb8fff9af59531aacd023920a24495 (diff)
downloadgit-d62c89afb278ab625dd399222ceb8d48b0358756.tar.gz
git-d62c89afb278ab625dd399222ceb8d48b0358756.tar.xz
compat/mingw.c: remove printf format warning
5096d490 (convert trivial sprintf / strcpy calls to xsnprintf) converted two sprintf calls. Now GCC warns that "format '%u' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int'". Instead of changing the format string, use a variable of type unsigned in place of the typedef-ed type DWORD, which hides that it is actually an unsigned long. There is no correctness issue with the old code because unsigned long and unsigned are always of the same size on Windows, even in 64-bit builds. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'archive-tar.c')
0 files changed, 0 insertions, 0 deletions