diff options
author | Vincenzo Maffione <v.maffione@gmail.com> | 2014-02-06 17:02:15 +0100 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2014-02-25 11:50:16 +0100 |
commit | e96dfd110ee1ad70e7ddbfae01ca95c66f70dac0 (patch) | |
tree | e8c527cd8ff4796cad3d2b7f1c1a3836801234ed /net/tap-win32.c | |
parent | 6e50d18847a76704c8a49e406084a2321117b954 (diff) | |
download | hqemu-e96dfd110ee1ad70e7ddbfae01ca95c66f70dac0.zip hqemu-e96dfd110ee1ad70e7ddbfae01ca95c66f70dac0.tar.gz |
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 <v.maffione@gmail.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'net/tap-win32.c')
-rw-r--r-- | net/tap-win32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/tap-win32.c b/net/tap-win32.c index 91e9e84..edf26c4 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) |