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
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)
}
/**
+ *
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