mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 02:51:16 +00:00
Fix openvz build on x86_64
This commit is contained in:
parent
d1b5773ec1
commit
95675d4d76
@ -1,3 +1,8 @@
|
||||
Mon Jul 7 12:46:56 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* src/openvz_driver.c: Don't cast pointers to ints, and fix
|
||||
the return value to be -1, not 0.
|
||||
|
||||
Mon Jul 7 11:34:56 BST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||
|
||||
* tests/testutils.c: Remove bogus return statement which
|
||||
|
@ -634,7 +634,7 @@ static int openvzListDomains(virConnectPtr conn, int *ids, int nids) {
|
||||
ret = virExec(conn, (char **)cmd, &pid, -1, &outfd, &errfd);
|
||||
if(ret == -1) {
|
||||
error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
|
||||
return (int)NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
while(got < nids){
|
||||
@ -665,7 +665,7 @@ static int openvzListDefinedDomains(virConnectPtr conn,
|
||||
ret = virExec(conn, (char **)cmd, &pid, -1, &outfd, &errfd);
|
||||
if(ret == -1) {
|
||||
error(conn, VIR_ERR_INTERNAL_ERROR, "Could not exec " VZLIST);
|
||||
return (int)NULL;
|
||||
return -1;
|
||||
}
|
||||
|
||||
while(got < nnames){
|
||||
|
Loading…
Reference in New Issue
Block a user