diff mbox

[v2,07/13] Use unsigned types for the 'len' argument of all memory read/write functions

Message ID 1456847859-4771-7-git-send-email-martin.galvan@tallertechnologies.com
State New
Headers show

Commit Message

Martin Galvan March 1, 2016, 3:57 p.m. UTC
---
 hw/net/xgmac.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.7.1
diff mbox

Patch

diff --git a/hw/net/xgmac.c b/hw/net/xgmac.c
index 0c5f793..b992435 100644
--- a/hw/net/xgmac.c
+++ b/hw/net/xgmac.c
@@ -203,8 +203,8 @@  static void xgmac_write_desc(XgmacState *s, struct desc *d, int rx)
 static void xgmac_enet_send(XgmacState *s)
 {
     struct desc bd;
-    int frame_size;
-    int len;
+    size_t frame_size;
+    size_t len;
     uint8_t frame[8192];
     uint8_t *ptr;