[PATCH] util: fix a typo on return value

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

 



virNetDevTapCreateInBridgePort
returns 0 in case of success or -1 on failure
---
 src/util/virnetdevtap.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/util/virnetdevtap.c b/src/util/virnetdevtap.c
index 6ccc380..83f2ecd 100644
--- a/src/util/virnetdevtap.c
+++ b/src/util/virnetdevtap.c
@@ -341,5 +341,5 @@ int virNetDevTapCreateInBridgePort(const char *brname,
     if (tapfd)
         VIR_FORCE_CLOSE(*tapfd);
 
-    return errno;
+    return -1;
 }
-- 
1.7.7.5

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