[PATCH 1/2] virfirewall: fix build on freebsd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Freebsd doesn't know ENODATA so we have to use different EINVAL
error code.

Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---

Pushed as build breaker.

 src/util/virfirewall.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/util/virfirewall.c b/src/util/virfirewall.c
index cee0b1e..bab1634 100644
--- a/src/util/virfirewall.c
+++ b/src/util/virfirewall.c
@@ -307,7 +307,7 @@ virFirewallAddRuleFullV(virFirewallPtr firewall,
     VIR_FIREWALL_RETURN_NULL_IF_ERROR(firewall);
 
     if (firewall->ngroups == 0) {
-        firewall->err = ENODATA;
+        firewall->err = EINVAL;
         return NULL;
     }
     group = firewall->groups[firewall->currentGroup];
@@ -608,7 +608,7 @@ void virFirewallStartRollback(virFirewallPtr firewall,
     VIR_FIREWALL_RETURN_IF_ERROR(firewall);
 
     if (firewall->ngroups == 0) {
-        firewall->err = ENODATA;
+        firewall->err = EINVAL;
         return;
     }
 
-- 
1.8.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]