Re: [libvirt] [PATCH 2/3] Routine to truncate virBuffer

2011-11-11 Thread Bharata B Rao
On Mon, Nov 07, 2011 at 11:12:07AM -0700, Eric Blake wrote: On 11/06/2011 06:58 AM, Bharata B Rao wrote: Routine to truncate virBuffer From: Bharata B Raobhar...@linux.vnet.ibm.com Add a helper to truncate virBuffer. /** * virBufferTruncate: +++ b/src/util/buf.c @@ -123,6 +123,31

Re: [libvirt] [PATCH 2/3] Routine to truncate virBuffer

2011-11-07 Thread Eric Blake
On 11/06/2011 06:58 AM, Bharata B Rao wrote: Routine to truncate virBuffer From: Bharata B Raobhar...@linux.vnet.ibm.com Add a helper to truncate virBuffer. /** * virBufferTruncate: +++ b/src/util/buf.c @@ -123,6 +123,31 @@ virBufferGrow(virBufferPtr buf, unsigned int len) } /** + *

[libvirt] [PATCH 2/3] Routine to truncate virBuffer

2011-11-06 Thread Bharata B Rao
Routine to truncate virBuffer From: Bharata B Rao bhar...@linux.vnet.ibm.com Add a helper to truncate virBuffer. /** * virBufferTruncate: * @buf: the buffer * @len: number of bytes by which the buffer is truncated * * Truncate the buffer by @len bytes. * * Returns zero on success or -1