From patchwork Sat Jul 23 21:25:18 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Blue Swirl X-Patchwork-Id: 106496 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 90035B6F74 for ; Sun, 24 Jul 2011 07:25:49 +1000 (EST) Received: from localhost ([::1]:33225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkjhi-0008V5-UA for incoming@patchwork.ozlabs.org; Sat, 23 Jul 2011 17:25:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]:39297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkjhc-0008R0-Do for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:25:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qkjhb-0001OR-2b for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:25:40 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:42973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qkjha-0001ON-K0 for qemu-devel@nongnu.org; Sat, 23 Jul 2011 17:25:38 -0400 Received: by qyk30 with SMTP id 30so2082390qyk.4 for ; Sat, 23 Jul 2011 14:25:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; bh=x6v4YqjEIYortzD345LsTN5w1SvsipRv8BcL2D3ssnM=; b=jOqEKcxCe7GedZk16rAeZeLCpXZDnZ11/xiRKtkHlfLJbXbL9S3QrZpG55vIIYoR2V Q1HlaX7frjUnpHmUJOSLIaEqdrUqaAl6i0aFmspgJZncrQxTAhiqNhuHA0N36JEH78i5 C7c/NAXsJAWfkQF+Qwz2WvY0Ra9zBOLn2o6zo= Received: by 10.224.192.137 with SMTP id dq9mr2146732qab.166.1311456338113; Sat, 23 Jul 2011 14:25:38 -0700 (PDT) MIME-Version: 1.0 Received: by 10.224.29.6 with HTTP; Sat, 23 Jul 2011 14:25:18 -0700 (PDT) From: Blue Swirl Date: Sun, 24 Jul 2011 00:25:18 +0300 Message-ID: To: qemu-devel X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.216.180 Subject: [Qemu-devel] [PATCH 2/3] slirp: fix warning on mingw32 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Avoid this warning: CC slirp/ip_icmp.o /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive': /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror] /usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:547:32: note: expected 'char *' but argument is of type 'struct icmp *' Signed-off-by: Blue Swirl --- slirp/ip_icmp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) From 37628ecdfc668419a7724687249f2791e9241847 Mon Sep 17 00:00:00 2001 Message-Id: <37628ecdfc668419a7724687249f2791e9241847.1311456245.git.blauwirbel@gmail.com> In-Reply-To: <8bcd08d1fe7c90869ea6659b6248ace6cf7b1f32.1311456245.git.blauwirbel@gmail.com> References: <8bcd08d1fe7c90869ea6659b6248ace6cf7b1f32.1311456245.git.blauwirbel@gmail.com> From: Blue Swirl Date: Sat, 23 Jul 2011 20:04:29 +0000 Subject: [PATCH 2/3] slirp: fix warning on mingw32 Avoid this warning: CC slirp/ip_icmp.o /src/qemu/slirp/ip_icmp.c: In function 'icmp_receive': /src/qemu/slirp/ip_icmp.c:418:5: error: passing argument 2 of 'recv' from incompatible pointer type [-Werror] /usr/local/lib/gcc/i686-mingw32msvc/4.6.0/../../../../i686-mingw32msvc/include/winsock2.h:547:32: note: expected 'char *' but argument is of type 'struct icmp *' Signed-off-by: Blue Swirl --- slirp/ip_icmp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/slirp/ip_icmp.c b/slirp/ip_icmp.c index 14a5312..a208648 100644 --- a/slirp/ip_icmp.c +++ b/slirp/ip_icmp.c @@ -415,7 +415,7 @@ void icmp_receive(struct socket *so) icp = mtod(m, struct icmp *); id = icp->icmp_id; - len = recv(so->s, icp, m->m_len, 0); + len = recv(so->s, (char *)icp, m->m_len, 0); icp->icmp_id = id; m->m_data -= hlen; -- 1.7.2.5