Commit 38272f2d authored by Eric Blake's avatar Eric Blake Committed by Michael Tokarev
Browse files

Drop unneeded system header includes



<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: default avatarEric Blake <eblake@redhat.com>
Signed-off-by: default avatarMichael Tokarev <mjt@tls.msk.ru>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
parent e80200c5
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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>

+0 −1
Original line number Diff line number Diff line
@@ -17,7 +17,6 @@
 */

#include "qemu/osdep.h"
#include <memory.h>
#include "panic.h"
#include "qemu-common.h"
#include "cpu.h"