Patchwork [2/2] hw/virtio-net: fix config_size data type

login
register
mail settings
Submitter Jesse Larrew
Date Feb. 7, 2013, 8:49 p.m.
Message ID <1360270167-15385-3-git-send-email-jlarrew@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/218993/
State New
Headers show

Comments

Jesse Larrew - Feb. 7, 2013, 8:49 p.m.
Since the new config_size member of struct VirtIONet specifies a size, it
should be declared as size_t.

Signed-off-by: Jesse Larrew <jlarrew@linux.vnet.ibm.com>
---
 hw/virtio-net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/hw/virtio-net.c b/hw/virtio-net.c
index 663f33c..573c669 100644
--- a/hw/virtio-net.c
+++ b/hw/virtio-net.c
@@ -73,7 +73,7 @@  typedef struct VirtIONet
     int multiqueue;
     uint16_t max_queues;
     uint16_t curr_queues;
-    int config_size;
+    size_t config_size;
 } VirtIONet;
 
 /*