From: Hwankyu Jhun Date: Tue, 2 Feb 2016 02:20:22 +0000 (+0900) Subject: Remove compile warning messages X-Git-Tag: submit/tizen/20170725.231500~6^2~90 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=19a7041dbd7726f24cc6eff689f6ff849320ecd6;p=platform%2Fcore%2Fapi%2Fpreference.git Remove compile warning messages Change-Id: If6b5550afccabb99bc735c0e310f4acef49423bb Signed-off-by: Hwankyu Jhun --- diff --git a/app_common/app_path.c b/app_common/app_path.c index 34d5d0d..17ad228 100644 --- a/app_common/app_path.c +++ b/app_common/app_path.c @@ -16,6 +16,7 @@ #include #include +#include #include "app_types.h" @@ -47,7 +48,7 @@ char *app_get_shared_data_path(void) ret = aul_get_app_shared_data_path(&path); if (ret == AUL_R_OK && path) set_last_result(APP_ERROR_NONE); - else if (ret = AUL_R_EREJECTED) + else if (ret == AUL_R_EREJECTED) set_last_result(APP_ERROR_NOT_SUPPORTED); else set_last_result(APP_ERROR_OUT_OF_MEMORY); diff --git a/src/app_main.c b/src/app_main.c index 661ef0a..83451e3 100644 --- a/src/app_main.c +++ b/src/app_main.c @@ -32,6 +32,9 @@ #include #include +#include + +#include "app_extension.h" #ifdef LOG_TAG #undef LOG_TAG @@ -803,7 +806,7 @@ void *ui_app_get_default_window(const char *win_name) Evas_Object *win; if (win_name == NULL) { - set_last_error(TIZEN_ERROR_INVALID_PARAMETER); + set_last_result(TIZEN_ERROR_INVALID_PARAMETER); return NULL; } @@ -811,12 +814,12 @@ void *ui_app_get_default_window(const char *win_name) if (win == NULL) { win = elm_win_add(NULL, win_name, ELM_WIN_BASIC); if (win == NULL) { - set_last_error(TIZEN_ERROR_IO_ERROR); + set_last_result(TIZEN_ERROR_IO_ERROR); LOGE("failed to get window"); return NULL; } } - set_last_error(TIZEN_ERROR_NONE); + set_last_result(TIZEN_ERROR_NONE); return win; }