aboutsummaryrefslogtreecommitdiff
path: root/lib/libvirtio/p9.h
diff options
context:
space:
mode:
authorNikunj A Dadhania <nikunj@linux.vnet.ibm.com>2016-02-01 11:17:52 +0530
committerAlexey Kardashevskiy <aik@ozlabs.ru>2016-02-08 16:40:38 +1100
commit4f26878f1787c4f07f83e459142552d92d0cfe22 (patch)
tree1c90283b2778788ac89c5bd5497284ab0e72797f /lib/libvirtio/p9.h
parentc8d2f276e7699214d40e5f78c55ba91727a3b61f (diff)
downloadSLOF-4f26878f1787c4f07f83e459142552d92d0cfe22.zip
SLOF-4f26878f1787c4f07f83e459142552d92d0cfe22.tar.gz
SLOF-4f26878f1787c4f07f83e459142552d92d0cfe22.tar.bz2
virtio-net: fix gcc warnings (-Wextra)
Change rx_size type which originally should have been uint32_t. This also requires a change in the function prototype. Also change the return type of virtio_9p_load() to silence another gcc warning Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'lib/libvirtio/p9.h')
-rw-r--r--lib/libvirtio/p9.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libvirtio/p9.h b/lib/libvirtio/p9.h
index 7df9ef4..3a35e80 100644
--- a/lib/libvirtio/p9.h
+++ b/lib/libvirtio/p9.h
@@ -33,7 +33,7 @@
#define P9_PARTIAL_WALK 1
typedef int (*p9_transact_t)(void *opaque, uint8_t *tx, int tx_size,
- uint8_t *rx, int *rx_size);
+ uint8_t *rx, uint32_t *rx_size);
typedef struct {
uint32_t message_size;