[libvirt] [PATCH 04/14] Remove bogus const return values in storage file APIs

Eric Blake eblake at redhat.com
Tue Dec 11 23:25:11 UTC 2012


On 12/11/2012 01:41 PM, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
> 
> virStorageFileGetLVMKey and virStorageFileGetSCSIKey
> both return heap allocated strings, so the return value
> should not be marked const.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---
>  src/util/storage_file.c | 8 ++++----
>  src/util/storage_file.h | 4 ++--
>  2 files changed, 6 insertions(+), 6 deletions(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121211/ed0a31da/attachment-0001.sig>


More information about the libvir-list mailing list