mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 09:17:52 +03:00
Avoid compile warnings about assignment/conditional/truthvalue
This commit is contained in:
parent
220bcb0535
commit
d83ded2dba
@ -1,3 +1,9 @@
|
|||||||
|
Wed Apr 22 15:28:03 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/network_driver.c: Explicit check for NULL, to avoid
|
||||||
|
compiler complaining about "assignment treated as truth value
|
||||||
|
in conditional".
|
||||||
|
|
||||||
Wed Apr 22 15:27:03 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
Wed Apr 22 15:27:03 BST 2009 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
Use private /dev/pts instance for containers (needs 'newinstance'
|
Use private /dev/pts instance for containers (needs 'newinstance'
|
||||||
|
@ -748,7 +748,7 @@ virNetworkObjPtr virNetworkLoadConfig(virConnectPtr conn,
|
|||||||
/* Generate a bridge if none is found, but don't check for collisions
|
/* Generate a bridge if none is found, but don't check for collisions
|
||||||
* if a bridge is hardcoded, so the network is at least defined
|
* if a bridge is hardcoded, so the network is at least defined
|
||||||
*/
|
*/
|
||||||
if (tmp = virNetworkAllocateBridge(conn, nets, def->bridge)) {
|
if ((tmp = virNetworkAllocateBridge(conn, nets, def->bridge)) != NULL) {
|
||||||
VIR_FREE(def->bridge);
|
VIR_FREE(def->bridge);
|
||||||
def->bridge = tmp;
|
def->bridge = tmp;
|
||||||
} else
|
} else
|
||||||
|
Loading…
Reference in New Issue
Block a user