From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nwu8V-0006C3-QT for qemu-devel@nongnu.org; Wed, 31 Mar 2010 05:22:55 -0400 Received: from [140.186.70.92] (port=43115 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nwu8U-0006B8-6C for qemu-devel@nongnu.org; Wed, 31 Mar 2010 05:22:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nwu8Q-0001Rt-4c for qemu-devel@nongnu.org; Wed, 31 Mar 2010 05:22:54 -0400 Received: from smtp21.orange.fr ([80.12.242.48]:8175) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nwu8Q-0001Re-01 for qemu-devel@nongnu.org; Wed, 31 Mar 2010 05:22:50 -0400 From: Thomas Monjalon Date: Wed, 31 Mar 2010 11:22:51 +0200 Message-Id: <1270027371-25548-1-git-send-email-thomas_ml@monjalon.net> Subject: [Qemu-devel] [PATCH] e1000: fix build on Ubuntu with _FORTIFY_SOURCE List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Thomas Monjalon From: Thomas Monjalon There was a pointer cast warning on Ubuntu since _FORTIFY_SOURCE has been reenabled. _FORTIFY_SOURCE had been disabled by 4a24470497360d8b77568b83008d0e9d6eb0787d and reenabled by 849583050d5f6f782718be8cb50688978973fbea. Signed-off-by: Thomas Monjalon --- hw/e1000.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/e1000.c b/hw/e1000.c index fd3059a..34cc451 100644 --- a/hw/e1000.c +++ b/hw/e1000.c @@ -642,7 +642,7 @@ e1000_receive(VLANClientState *nc, const uint8_t *buf, size_t size) if (vlan_enabled(s) && is_vlan_packet(s, buf)) { vlan_special = cpu_to_le16(be16_to_cpup((uint16_t *)(buf + 14))); - memmove((void *)(buf + 4), buf, 12); + memmove((uint8_t *)buf + 4, buf, 12); vlan_status = E1000_RXD_STAT_VP; vlan_offset = 4; size -= 4; -- 1.7.0.3