diff mbox

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

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

Commit Message

Martin Galvan March 1, 2016, 3:57 p.m. UTC
---
 hw/arm/boot.c     | 2 +-
 hw/arm/musicpal.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--
2.7.1
diff mbox

Patch

diff --git a/hw/arm/boot.c b/hw/arm/boot.c
index 0a56d34c..4dd18f6 100644
--- a/hw/arm/boot.c
+++ b/hw/arm/boot.c
@@ -290,7 +290,7 @@  static void set_kernel_args(const struct arm_boot_info *info)
     }
     if (info->atag_board) {
         /* ATAG_BOARD */
-        int atag_board_len;
+        size_t atag_board_len;
         uint8_t atag_board_buf[0x1000];

         atag_board_len = (info->atag_board(info, atag_board_buf) + 3) & ~3;
diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c
index 54548f3..5208e13 100644
--- a/hw/arm/musicpal.c
+++ b/hw/arm/musicpal.c
@@ -248,7 +248,7 @@  static void eth_send(mv88w8618_eth_state *s, int queue_index)
     mv88w8618_tx_desc desc;
     uint32_t next_desc;
     uint8_t buf[2048];
-    int len;
+    size_t len;

     do {
         eth_tx_desc_get(desc_addr, &desc);