summaryrefslogtreecommitdiff
path: root/compat/mingw.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-10-29 13:59:17 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-10-29 13:59:17 -0700
commit228905fbce620ab96c0b7d2f0efac60a95797f07 (patch)
tree28aba6d9ca34166744fd52d7b645ed990ac4a389 /compat/mingw.c
parentMerge branch 'jc/em-dash-in-doc' (diff)
parentcompat/mingw.c: remove printf format warning (diff)
downloadtgif-228905fbce620ab96c0b7d2f0efac60a95797f07.tar.xz
Merge branch 'jk/war-on-sprintf'
* jk/war-on-sprintf: compat/mingw.c: remove printf format warning read_branches_file: plug a FILE* leak
Diffstat (limited to 'compat/mingw.c')
-rw-r--r--compat/mingw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.c b/compat/mingw.c
index a168800ae0..90bdb1edde 100644
--- a/compat/mingw.c
+++ b/compat/mingw.c
@@ -2131,7 +2131,7 @@ void mingw_startup()
int uname(struct utsname *buf)
{
- DWORD v = GetVersion();
+ unsigned v = (unsigned)GetVersion();
memset(buf, 0, sizeof(*buf));
xsnprintf(buf->sysname, sizeof(buf->sysname), "Windows");
xsnprintf(buf->release, sizeof(buf->release),