Re: [libvirt] [PATCH 01/10] memory: make it safer to expand arrays

2010-11-21 Thread Jean-Philippe Menil
Le 19/11/2010 08:33, Wen Congyang a écrit : p server->clients Sorry for the noise, but it's appear, that i encounter the same problem, compiling libvirt with the latest git snapshot. Libivrft is compiled with the following options: CC="gcc -ggdb -O1 -Wall" ./configure --build=x86_64-linux-gn

Re: [libvirt] [PATCH 01/10] memory: make it safer to expand arrays

2010-11-19 Thread Eric Blake
On 11/19/2010 12:33 AM, Wen Congyang wrote: > At 2010-11-18 12:28, Eric Blake Write: >> * src/util/memory.h (VIR_REALLOC_N): Update docs. >> (VIR_EXPAND_N, VIR_SHRINK_N): New macros. >> (virAlloc, virAllocN, virReallocN, virAllocVar, virFree): Add some >> gcc attributes. > > There may be a bug in

Re: [libvirt] [PATCH 01/10] memory: make it safer to expand arrays

2010-11-18 Thread Wen Congyang
At 2010-11-18 12:28, Eric Blake Write: > * src/util/memory.h (VIR_REALLOC_N): Update docs. > (VIR_EXPAND_N, VIR_SHRINK_N): New macros. > (virAlloc, virAllocN, virReallocN, virAllocVar, virFree): Add some > gcc attributes. > * src/util/memory.c (virExpandN, virShrinkN): New functions. > (virReallocN

Re: [libvirt] [PATCH 01/10] memory: make it safer to expand arrays

2010-11-18 Thread Daniel P. Berrange
On Wed, Nov 17, 2010 at 09:28:53PM -0700, Eric Blake wrote: > * src/util/memory.h (VIR_REALLOC_N): Update docs. > (VIR_EXPAND_N, VIR_SHRINK_N): New macros. > (virAlloc, virAllocN, virReallocN, virAllocVar, virFree): Add some > gcc attributes. > * src/util/memory.c (virExpandN, virShrinkN): New func

[libvirt] [PATCH 01/10] memory: make it safer to expand arrays

2010-11-17 Thread Eric Blake
* src/util/memory.h (VIR_REALLOC_N): Update docs. (VIR_EXPAND_N, VIR_SHRINK_N): New macros. (virAlloc, virAllocN, virReallocN, virAllocVar, virFree): Add some gcc attributes. * src/util/memory.c (virExpandN, virShrinkN): New functions. (virReallocN): Update docs. * docs/hacking.html.in: Prefer newe