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

Submitted by Jesse Larrew on Feb. 7, 2013, 8:49 p.m.

Details

Message ID 1360270167-15385-3-git-send-email-jlarrew@linux.vnet.ibm.com
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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;
 
 /*