From 18fe86e8245878f3b7a2813bd59b8cfcf636e15c Mon Sep 17 00:00:00 2001 From: David 'Digit' Turner Date: Tue, 19 Oct 2010 08:07:11 +0200 Subject: emulator-ui: Remove dependencies from qemu sources. This change removes some QEMU-specifics that crept into the UI code. Change-Id: Ib1974dc64e54a35dc0cd01aec1eb547a9263a0c8 --- sockets.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sockets.c') diff --git a/sockets.c b/sockets.c index 14e9ad6..72a388a 100644 --- a/sockets.c +++ b/sockets.c @@ -15,7 +15,6 @@ #endif #include "sockets.h" -#include "qemu-common.h" #include #include #include "qemu_debug.h" @@ -25,6 +24,7 @@ #include "android/utils/path.h" #include "android/utils/debug.h" #include "android/utils/misc.h" +#include "android/utils/system.h" #define D(...) VERBOSE_PRINT(socket,__VA_ARGS__) @@ -786,8 +786,8 @@ sock_address_list_create( const char* hostname, for (count = 0, e = res; e != NULL; e = e->ai_next) count += 1; - list = (SockAddress**) qemu_malloc((count+1)*sizeof(SockAddress*)); - addr = (SockAddress*) qemu_malloc(count*sizeof(SockAddress)); + AARRAY_NEW(list, count+1); + AARRAY_NEW(addr, count); for (nn = 0, e = res; e != NULL; e = e->ai_next) { @@ -816,8 +816,8 @@ sock_address_list_free( SockAddress** list ) sock_address_done(list[nn]); list[nn] = NULL; } - qemu_free(addr); - qemu_free(list); + AFREE(addr); + AFREE(list); } int -- cgit v1.1