projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14da561
)
e1000: fix build on Ubuntu with _FORTIFY_SOURCE
author
Thomas Monjalon
<thomas@monjalon.net>
Wed, 31 Mar 2010 09:22:51 +0000
(11:22 +0200)
committer
Aurelien Jarno
<aurelien@aurel32.net>
Thu, 8 Apr 2010 19:32:31 +0000
(21:32 +0200)
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 <thomas@monjalon.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
hw/e1000.c
patch
|
blob
|
history
diff --git
a/hw/e1000.c
b/hw/e1000.c
index fd3059ad8a74183ae21180632a1b9e6def56c9ee..34cc451cf73b29ec11f099484d8e0219751e2894 100644
(file)
--- 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;