From: Guannan Ren Date: Wed, 25 Jul 2012 09:43:18 +0000 (+0800) Subject: util: Fix typoes on return value and comments X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=72e59a3b745ed5ab493d5c11f7c54f8c62a19eb5;p=libvirt.git util: Fix typoes on return value and comments virNetDevTapCreateInBridgePort: Fix return value to -1 virNetDevTapCreate: Fix comments --- diff --git a/src/util/virnetdevtap.c b/src/util/virnetdevtap.c index 6ccc380e89..192d180ecb 100644 --- a/src/util/virnetdevtap.c +++ b/src/util/virnetdevtap.c @@ -121,7 +121,7 @@ virNetDevProbeVnetHdr(int tapfd) * persistent and closed. The caller must use virNetDevTapDelete to * remove a persistent TAP devices when it is no longer needed. * - * Returns 0 in case of success or an errno code in case of failure. + * Returns 0 in case of success or -1 on failure. */ int virNetDevTapCreate(char **ifname, int *tapfd, @@ -341,5 +341,5 @@ int virNetDevTapCreateInBridgePort(const char *brname, if (tapfd) VIR_FORCE_CLOSE(*tapfd); - return errno; + return -1; }