Re: [PATCH 2/2 jk/war-on-sprintf] compat/mingw.c: remove printf format warning

2015-10-23 Thread Jeff King
On Fri, Oct 23, 2015 at 08:02:52AM +0200, Johannes Sixt wrote: > 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 chang

[PATCH 2/2 jk/war-on-sprintf] compat/mingw.c: remove printf format warning

2015-10-22 Thread Johannes Sixt
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 t