nedmalloc: fix misleading indentation
Some code in nedmalloc is indented in a funny way that could be misinterpreted as if a line after a for loop was included in the loop body, when it is not. GCC 6 complains about this in DEVELOPER=YepSure mode. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Schindelin committed
Aug 4, 2016 at 18:07 UTC
1e70105954fd85fcb198a4b5b95378ecc3e6beef
1 file changed
+4
-4
compat/nedmalloc/nedmalloc.c
+4
-4
@@ -938,10 +938,10 @@ void **nedpindependent_comalloc(nedpool *p, size_t elems, size_t *sizes, void **
938
void **ret;
939
threadcache *tc;
940
int mymspace;
941
- size_t i, *adjustedsizes=(size_t *) alloca(elems*sizeof(size_t));
942
- if(!adjustedsizes) return 0;
943
- for(i=0; i<elems; i++)
944
- adjustedsizes[i]=sizes[i]<sizeof(threadcacheblk) ? sizeof(threadcacheblk) : sizes[i];
941
+ size_t i, *adjustedsizes=(size_t *) alloca(elems*sizeof(size_t));
942
+ if(!adjustedsizes) return 0;
943
+ for(i=0; i<elems; i++)
944
+ adjustedsizes[i]=sizes[i]<sizeof(threadcacheblk) ? sizeof(threadcacheblk) : sizes[i];
945
GetThreadCache(&p, &tc, &mymspace, 0);
946
GETMSPACE(m, p, tc, mymspace, 0,
947
ret=mspace_independent_comalloc(m, elems, adjustedsizes, chunks));