aboutsummaryrefslogtreecommitdiffstats
path: root/sockets.c
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@android.com>2010-10-19 08:07:11 +0200
committerDavid 'Digit' Turner <digit@android.com>2010-10-19 08:33:48 +0200
commit18fe86e8245878f3b7a2813bd59b8cfcf636e15c (patch)
tree16ecfe8a8665aec212abdd3f2fcd1e122635358b /sockets.c
parent6b512811e01d7c81348bfa9c29c21f788ccc0a8e (diff)
downloadexternal_qemu-18fe86e8245878f3b7a2813bd59b8cfcf636e15c.zip
external_qemu-18fe86e8245878f3b7a2813bd59b8cfcf636e15c.tar.gz
external_qemu-18fe86e8245878f3b7a2813bd59b8cfcf636e15c.tar.bz2
emulator-ui: Remove dependencies from qemu sources.
This change removes some QEMU-specifics that crept into the UI code. Change-Id: Ib1974dc64e54a35dc0cd01aec1eb547a9263a0c8
Diffstat (limited to 'sockets.c')
-rw-r--r--sockets.c10
1 files changed, 5 insertions, 5 deletions
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 <fcntl.h>
#include <stddef.h>
#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