Drop unneeded system header includes
authorEric Blake <eblake@redhat.com>
Wed, 7 Feb 2018 16:03:02 +0000 (10:03 -0600)
committerMichael Tokarev <mjt@tls.msk.ru>
Sat, 10 Feb 2018 07:07:40 +0000 (10:07 +0300)
<memory.h> is a non-standard obsolete header that was long ago
replaced by <string.h>.

<malloc.h> is a non-standard header; it is not obsolete (we must
use it for malloc_trim, for example), but generally should not
be used in files that just need malloc() and friends, where
<stdlib.h> is the standard header.

And since osdep.h already guarantees string.h and stdlib.h, we
can drop these unusual system header includes as redundant
rather than replacing them.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
target/i386/hax-windows.h
target/i386/hvf/x86_mmu.c

index 004f86769499b4d6bb38e4ae038a8d4ff5a15ae8..20e2f85407b916f5f22053821d79fe1d1b538987 100644 (file)
@@ -20,8 +20,6 @@
 #ifndef TARGET_I386_HAX_WINDOWS_H
 #define TARGET_I386_HAX_WINDOWS_H
 
-#include <memory.h>
-#include <malloc.h>
 #include <winioctl.h>
 #include <windef.h>
 
index c6be2cca357491bd4f4b9f064d8bb1cf35a736d1..d5a0efe7188598b97d36f4d87c0db9533a570b9e 100644 (file)
@@ -17,7 +17,6 @@
  */
 
 #include "qemu/osdep.h"
-#include <memory.h>
 #include "panic.h"
 #include "qemu-common.h"
 #include "cpu.h"