From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42588) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aamgV-0006vr-QC for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:58:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aamgV-0006MV-2X for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:58:03 -0500 Received: from mail-qg0-x234.google.com ([2607:f8b0:400d:c04::234]:35420) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aamgU-0006MN-Uy for qemu-devel@nongnu.org; Tue, 01 Mar 2016 10:58:03 -0500 Received: by mail-qg0-x234.google.com with SMTP id y89so145204664qge.2 for ; Tue, 01 Mar 2016 07:58:02 -0800 (PST) From: Martin Galvan Date: Tue, 1 Mar 2016 12:57:33 -0300 Message-Id: <1456847859-4771-7-git-send-email-martin.galvan@tallertechnologies.com> In-Reply-To: <1456847859-4771-1-git-send-email-martin.galvan@tallertechnologies.com> References: <1456847650-4476-1-git-send-email-martin.galvan@tallertechnologies.com> <1456847859-4771-1-git-send-email-martin.galvan@tallertechnologies.com> Subject: [Qemu-devel] [PATCH v2 07/13] Use unsigned types for the 'len' argument of all memory read/write functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, peter.maydell@linaro.org, pbonzini@redhat.com, edgar.iglesias@gmail.com, rth@twiddle.net, aurelien@aurel32.net, kraxel@redhat.com, blauwirbel@gmail.com, lcapitulino@redhat.com, armbru@redhat.com, afaerber@suse.de, dmitry@daynix.com --- hw/net/xgmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.7.1