From: Garux Date: Sun, 29 Mar 2020 00:59:32 +0000 (+0100) Subject: bikeshedding: reduce diff noise with Garux tree X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=dd26dc48e9500d279343a4d700d20bc2090744c6 bikeshedding: reduce diff noise with Garux tree see: https://github.com/Garux/netradiant-custom/commit/4292115ef741ff066b382c094f8c7814afaccf59#diff-386c03feac6f15ccc15c4dab7bb97320R342 that's not fair --- diff --git a/tools/quake3/q3map2/bspfile_abstract.c b/tools/quake3/q3map2/bspfile_abstract.c index 4b60a9ed..675aef6d 100644 --- a/tools/quake3/q3map2/bspfile_abstract.c +++ b/tools/quake3/q3map2/bspfile_abstract.c @@ -344,8 +344,7 @@ void AddLump( FILE *file, bspHeader_t *header, int lumpNum, const void *data, in SafeWrite( file, data, length ); /* write padding zeros */ - char zeros[3] = { 0, 0, 0 }; - SafeWrite( file, zeros, ( ( length + 3 ) & ~3 ) - length ); + SafeWrite( file, (const byte[3]){ 0, 0, 0 }, ( ( length + 3 ) & ~3 ) - length ); }