Remove compile warning messages
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 34d5d0ddc9145e47b724f51c611ffda477b0ed37..17ad228015d8152e42b92ce358ae3d57be022b68 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 661ef0a4717ed37b4a398a4a8a2b274b978a65d7..83451e385ba99f22bb8e1d08a36367c52122e90f 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;
 }