mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 23:07:44 +00:00
util: Fix typoes on return value and comments
virNetDevTapCreateInBridgePort: Fix return value to -1 virNetDevTapCreate: Fix comments
This commit is contained in:
parent
5eef74320b
commit
72e59a3b74
@ -121,7 +121,7 @@ virNetDevProbeVnetHdr(int tapfd)
|
|||||||
* persistent and closed. The caller must use virNetDevTapDelete to
|
* persistent and closed. The caller must use virNetDevTapDelete to
|
||||||
* remove a persistent TAP devices when it is no longer needed.
|
* 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 virNetDevTapCreate(char **ifname,
|
||||||
int *tapfd,
|
int *tapfd,
|
||||||
@ -341,5 +341,5 @@ int virNetDevTapCreateInBridgePort(const char *brname,
|
|||||||
if (tapfd)
|
if (tapfd)
|
||||||
VIR_FORCE_CLOSE(*tapfd);
|
VIR_FORCE_CLOSE(*tapfd);
|
||||||
|
|
||||||
return errno;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user