Remove compile warning messages 61/58561/1 accepted/tizen/common/20160217.170705 accepted/tizen/ivi/20160218.022838 accepted/tizen/mobile/20160202.114607 accepted/tizen/tv/20160202.114653 accepted/tizen/wearable/20160202.114732 submit/tizen/20160202.023804 submit/tizen_common/20160217.131930 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000001
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Feb 2016 02:20:22 +0000 (11:20 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 2 Feb 2016 02:20:22 +0000 (11:20 +0900)
Change-Id: If6b5550afccabb99bc735c0e310f4acef49423bb
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
app_common/app_path.c
src/app_main.c

index 34d5d0d..17ad228 100644 (file)
@@ -16,6 +16,7 @@
 
 #include <string.h>
 #include <aul.h>
+#include <tizen_error.h>
 
 #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);
index 661ef0a..83451e3 100644 (file)
@@ -32,6 +32,9 @@
 
 #include <app_internal.h>
 #include <app_control_internal.h>
+#include <tizen_error.h>
+
+#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;
 }