]> git.proxmox.com Git - mirror_qemu.git/blobdiff - cutils.c
Fix sign extension problems with smul and umul (Vince Weaver)
[mirror_qemu.git] / cutils.c
index 738d5265d7be722c8926114c1582a12d314808c1..9ef2fa627cfba9d78c12ed406f491b2e09ef6334 100644 (file)
--- a/cutils.c
+++ b/cutils.c
@@ -95,38 +95,3 @@ time_t mktimegm(struct tm *tm)
     t += 3600 * tm->tm_hour + 60 * tm->tm_min + tm->tm_sec;
     return t;
 }
-
-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;
-}