Fix openvz build on x86_64

This commit is contained in:
Daniel P. Berrange 2008-07-07 11:48:40 +00:00
parent d1b5773ec1
commit 95675d4d76
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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){