From e96dfd110ee1ad70e7ddbfae01ca95c66f70dac0 Mon Sep 17 00:00:00 2001 From: Vincenzo Maffione Date: Thu, 6 Feb 2014 17:02:15 +0100 Subject: net: change vnet-hdr TAP prototypes The tap_has_vnet_hdr() and tap_has_vnet_hdr_len() functions used to return int, even though they only return true/false values. This patch changes the prototypes to return bool. Signed-off-by: Vincenzo Maffione Signed-off-by: Stefan Hajnoczi --- net/tap-win32.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'net/tap-win32.c') diff --git a/net/tap-win32.c b/net/tap-win32.c index 91e9e844a0..edf26c4720 100644 --- a/net/tap-win32.c +++ b/net/tap-win32.c @@ -727,9 +727,9 @@ bool tap_has_ufo(NetClientState *nc) return false; } -int tap_has_vnet_hdr(NetClientState *nc) +bool tap_has_vnet_hdr(NetClientState *nc) { - return 0; + return false; } int tap_probe_vnet_hdr_len(int fd, int len) @@ -755,9 +755,9 @@ struct vhost_net *tap_get_vhost_net(NetClientState *nc) return NULL; } -int tap_has_vnet_hdr_len(NetClientState *nc, int len) +bool tap_has_vnet_hdr_len(NetClientState *nc, int len) { - return 0; + return false; } void tap_set_vnet_hdr_len(NetClientState *nc, int len) -- cgit v1.2.3