Use proper error code in virStorageVolCreateXML

This commit is contained in:
Cole Robinson 2009-05-05 14:17:50 +00:00
parent 3f24e6c21c
commit 48e9d6862a
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue May 5 10:16:56 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/libvirt.c: Use proper error code in virStorageVolCreateXML
Mon May 4 11:44:09 EDT 2009 Cole Robinson <crobinso@redhat.com>
* src/storage_backend_fs.c: Fix a comment typo in storage_backend_fs.c

View File

@ -6740,7 +6740,7 @@ virStorageVolCreateXML(virStoragePoolPtr pool,
virResetLastError();
if (!VIR_IS_STORAGE_POOL(pool)) {
virLibConnError(NULL, VIR_ERR_INVALID_STORAGE_VOL, __FUNCTION__);
virLibConnError(NULL, VIR_ERR_INVALID_STORAGE_POOL, __FUNCTION__);
return (NULL);
}