From ed4e40d2ca3c1f6417d9ef9f872b8a0a50a3997c Mon Sep 17 00:00:00 2001 From: SeokYeon Hwang Date: Mon, 14 Jan 2013 21:04:17 +0900 Subject: [PATCH] emulator: Fix compilation warnings guest_server.c, debug_ch.c Signed-off-by: SeokYeon Hwang --- tizen/src/debug_ch.c | 6 +++++- tizen/src/guest_server.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tizen/src/debug_ch.c b/tizen/src/debug_ch.c index b391114cd2..77ff0e8cc5 100644 --- a/tizen/src/debug_ch.c +++ b/tizen/src/debug_ch.c @@ -434,6 +434,7 @@ int dbg_log( enum _debug_class cls, struct _debug_channel *channel, const char *format, ... ) { int ret = 0; + int ret_write = 0; char buf[2048]; va_list valist; int open_flags; @@ -459,7 +460,10 @@ int dbg_log( enum _debug_class cls, struct _debug_channel *channel, fprintf(stderr, "Can't open logfile: %s\n", logpath); exit(1); } - qemu_write_full(fd, buf, ret); + ret_write = qemu_write_full(fd, buf, ret); + if (ret_write != ret) { + // TODO: error handling... + } close(fd); return ret; diff --git a/tizen/src/guest_server.c b/tizen/src/guest_server.c index 1025cf83c2..452b048f54 100644 --- a/tizen/src/guest_server.c +++ b/tizen/src/guest_server.c @@ -81,7 +81,7 @@ pthread_t start_guest_server(int server_port) } /* get_emulator_vms_sdcard_path = "/home/{USER}/tizen-sdk-data/emulator-vms/sdcard" */ -char* get_emulator_vms_sdcard_path(void) +static char* get_emulator_vms_sdcard_path(void) { char *emulator_vms_sdcard_path = NULL; -- 2.34.1