fix coding rule & svace issue 28/150828/5 accepted/tizen/unified/20170920.174534 submit/tizen/20170919.052604
authorjkjo92 <jkjo92@samsung.com>
Tue, 19 Sep 2017 01:21:36 +0000 (10:21 +0900)
committerjkjo92 <jkjo92@samsung.com>
Tue, 19 Sep 2017 05:24:34 +0000 (14:24 +0900)
Change-Id: Iac625ab5a5698f91a429a63ed62deff5477470eb
Signed-off-by: jkjo92 <jkjo92@samsung.com>
inc/util.h [changed mode: 0644->0755]
src/main.c

old mode 100644 (file)
new mode 100755 (executable)
index bcd864e..c04ccf1
@@ -7,39 +7,39 @@
                if (!(cond)){\
                        return;\
                }\
-} while(0)
+} while (0)
 
 #define RET_IF_FAIL(cond, err) do {\
                if (!(cond)){\
                        return err;\
                }\
-} while(0)
+} while (0)
 
 #define CATCH_IF_FAIL(cond) do {\
                if (!(cond)){\
                        goto CATCH;\
                }\
-} while(0)
+} while (0)
 
 #define CATCH_IF_FAIL_X(cond, expr) do {\
                if (!(cond)){\
                        expr;\
                        goto CATCH;\
                }\
-} while(0)
+} while (0)
 
 #define GOTO_IF_FAIL(cond, catch_block) do {\
                if (!(cond)){\
                        goto catch_block;\
                }\
-} while(0)
+} while (0)
 
 #define SAFE_DELETE(x) do {\
-       if (x != NULL) {\
+       if (x != NULL){\
                free(x);    \
                x = NULL;\
        }\
-} while(0)
+} while (0)
 
 #define _SAFE_DUP(x) ((x) ? strdup(x) : NULL)
 
index a77ce67..f0d8233 100755 (executable)
@@ -52,7 +52,7 @@ confirm_call(void *data, Evas_Object *obj, void *event_info) {
 
        appdata_s *ad = data;
        int ret = password_handler_set_password(ad->pin_buffer);
-       if (ret != 0 ) {
+       if (ret != 0) {
                _ERR("failed");
                ks_notify(ad->ts_Caller, false);
                elm_exit();
@@ -91,23 +91,20 @@ click_login_btn(void *data, Evas_Object *obj, void *even_info) {
 
        elm_object_text_set(popup, "Incorrect PIN");
        evas_object_show(popup);
-
 }
 
-void clicked_cb(void *data, Evas_Object *obj, void *event_info) {
-
+void clicked_cb(void *data, Evas_Object *obj, void *event_info)
+{
 
        char edj_path[PATH_MAX] = {0, };
 
-
        appdata_s *ad = data;
        Evas_Object* Button;
 
        ad->pin_buffer = elm_entry_entry_get(ad->entry);
 
-
        if ((ad->pin_buffer != NULL) &&
-                       (*ad->pin_buffer!='\0')) {
+                       (*ad->pin_buffer != '\0')) {
                /* New Base Layout */
                app_get_resource(EDJ_FILE, edj_path, (int)PATH_MAX);
                ad->layout_confirm = elm_layout_add(ad->Naviframe);
@@ -313,7 +310,7 @@ static void create_base_gui(appdata_s *ad)
        evas_object_show(ad->Button);
 
        /*entry*/
-       ad->entry= elm_entry_add(ad->layout);
+       ad->entry = elm_entry_add(ad->layout);
        evas_object_size_hint_weight_set(ad->entry, EVAS_HINT_EXPAND,
                                                EVAS_HINT_EXPAND);
        evas_object_size_hint_align_set(ad->entry, EVAS_HINT_FILL,
@@ -352,7 +349,7 @@ static bool app_create(void *data)
 static void
 app_control(app_control_h app_control, void *data)
 {
-       if (app_control == NULL || data == NULL) {
+       if (app_control == NULL) {
                _ERR("app_control or data NULL");
                elm_exit();
        }