diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2010-10-26 10:39:26 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-10-30 08:02:39 +0000 |
commit | b152aa84d52882bb1846485a89baf13aa07c86bc (patch) | |
tree | ef36c582e3567543bed0f8d81c5622d2f4e8052a /qemu-common.h | |
parent | bc4a957c46acd8f4b2f2ffe6b2f90512325924dd (diff) |
Consolidate oom_check() functions
This consolidates the duplicated oom_check() functions, as well as
splitting them into OS dependant versions to avoid the #ifdef
grossness that was present in the old osdep.c version.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-common.h')
-rw-r--r-- | qemu-common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu-common.h b/qemu-common.h index 5555226f0a..5a18ca56b5 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -175,6 +175,7 @@ const char *path(const char *pathname); int ffs(int i); #endif +void *qemu_oom_check(void *ptr); void *qemu_malloc(size_t size); void *qemu_realloc(void *ptr, size_t size); void *qemu_mallocz(size_t size); |