提交 2fe658ad 编写于 作者: J Jean-Baptiste Rouault 提交者: Eric Blake

vmware: set the driver version

Since commit 7457cbe8 the vmware driver version isn't set anymore.
Signed-off-by: NEric Blake <eblake@redhat.com>
上级 6d7a287c
......@@ -259,7 +259,6 @@ vmwareParseVersionStr(int type, const char *verbuf, unsigned long *version)
int
vmwareExtractVersion(struct vmware_driver *driver)
{
unsigned long version = 0;
int ret = -1;
virCommandPtr cmd = NULL;
char * outbuf = NULL;
......@@ -298,7 +297,7 @@ vmwareExtractVersion(struct vmware_driver *driver)
if (virCommandRun(cmd, NULL) < 0)
goto cleanup;
if (vmwareParseVersionStr(driver->type, outbuf, &version) < 0)
if (vmwareParseVersionStr(driver->type, outbuf, &driver->version) < 0)
goto cleanup;
ret = 0;
......
......@@ -48,7 +48,7 @@ struct vmware_driver {
virDomainXMLOptionPtr xmlopt;
virDomainObjListPtr domains;
int version;
unsigned long version;
int type;
char *vmrun;
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册