From ca10f86763f58b7b3667e2ca7d26db3dc810eb20 Mon Sep 17 00:00:00 2001 From: aurel32 Date: Fri, 11 Apr 2008 21:35:42 +0000 Subject: 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 --- qemu-img.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) (limited to 'qemu-img.c') diff --git a/qemu-img.c b/qemu-img.c index 4fc365d..309a746 100644 --- a/qemu-img.c +++ b/qemu-img.c @@ -30,41 +30,6 @@ #include #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; -- cgit v1.1