networkEnableIpForwarding() now returns zero for success

This commit is contained in:
Mark McLoughlin 2009-02-22 11:19:54 +00:00
parent 6a4da4657b
commit 761f5a52dc
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
Sun Feb 22 11:18:20 GMT 2009 Mark McLoughlin <markmc@redhat.com>
* src/network_driver.c: networkEnableIpForwarding() now
returns zero for success
Sun Feb 22 11:06:39 GMT 2009 Mark McLoughlin <markmc@redhat.com>
* docs/formatdomain.html: commit auto-generated change as

View File

@ -794,7 +794,7 @@ networkRemoveIptablesRules(struct network_driver *driver,
iptablesSaveRules(driver->iptables);
}
/* Enable IP Forwarding. Return 0 for success, nonzero for failure. */
/* Enable IP Forwarding. Return 0 for success, -1 for failure. */
static int
networkEnableIpForwarding(void)
{
@ -853,7 +853,7 @@ static int networkStartNetworkDaemon(virConnectPtr conn,
goto err_delbr1;
if (network->def->forwardType != VIR_NETWORK_FORWARD_NONE &&
!networkEnableIpForwarding()) {
networkEnableIpForwarding() < 0) {
virReportSystemError(conn, errno, "%s",
_("failed to enable IP forwarding"));
goto err_delbr2;