diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-11 21:35:42 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-04-11 21:35:42 +0000 |
commit | ca10f86763f58b7b3667e2ca7d26db3dc810eb20 (patch) | |
tree | df0e6a1b430a4e0c68e7d11d83c1f974afe3c412 /qemu-img.c | |
parent | ea86e4e6007af70a5e23c4f93eea9d0732e3bcb0 (diff) | |
download | qemu-ca10f86763f58b7b3667e2ca7d26db3dc810eb20.zip qemu-ca10f86763f58b7b3667e2ca7d26db3dc810eb20.tar.gz qemu-ca10f86763f58b7b3667e2ca7d26db3dc810eb20.tar.bz2 |
Remove osdep.c/qemu-img code duplication
(Kevin Wolf)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4191 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-img.c')
-rw-r--r-- | qemu-img.c | 35 |
1 files changed, 0 insertions, 35 deletions
@@ -30,41 +30,6 @@ #include <windows.h> #endif -void *get_mmap_addr(unsigned long size) -{ - return NULL; -} - -void qemu_free(void *ptr) -{ - free(ptr); -} - -void *qemu_malloc(size_t size) -{ - return malloc(size); -} - -void *qemu_mallocz(size_t size) -{ - void *ptr; - ptr = qemu_malloc(size); - if (!ptr) - return NULL; - memset(ptr, 0, size); - return ptr; -} - -char *qemu_strdup(const char *str) -{ - char *ptr; - ptr = qemu_malloc(strlen(str) + 1); - if (!ptr) - return NULL; - strcpy(ptr, str); - return ptr; -} - static void __attribute__((noreturn)) error(const char *fmt, ...) { va_list ap; |