remove compile warnings 49/87449/3 submit/tizen/20160908.054151
authorJeong Seong-moon <salt.jeong@samsung.com>
Thu, 8 Sep 2016 05:04:55 +0000 (14:04 +0900)
committerJeong Seong-moon <salt.jeong@samsung.com>
Thu, 8 Sep 2016 05:11:35 +0000 (14:11 +0900)
Change-Id: I4ac7505ac58bf73ad1249012de28492b499e66a2

src/sys_lock.c

index ce59068..9b6ec5d 100755 (executable)
@@ -35,46 +35,7 @@ static bool isUnlocked;
 static char buf[BUF_SIZE];
 static int now;
 
-void _input_password(Evas_Object *ly, const char *txt)
-{
-       char tmp[BUF_SIZE] = { 0, };
-
-       if (now >= 4 || isUnlocked)
-               return;
-
-       snprintf(tmp, BUF_SIZE, "%s%s", buf, txt);
-       strncpy(buf,tmp,BUF_SIZE);
-       now++;
-
-       if (!strcmp(STR_PASSWORD, buf)) {
-               _dbus_send_sys_lock_unlock_signal();
-               isUnlocked = true;
-               _update_password_view(ly, 5);
-       } else {
-               _update_password_view(ly, now);
-       }
-}
-
-void _clear_password(Evas_Object *ly)
-{
-       if (now <= 0)
-               return;
-
-       now--;
-       buf[now] = '\0';
-
-       _update_password_view(ly, now);
-}
-
-void _clear_all_password(Evas_Object *ly)
-{
-       memset(buf, 0, BUF_SIZE);
-       now = 0;
-
-       _update_password_view(ly, now);
-}
-
-void _update_password_view(Evas_Object *ly, int num)
+static void _update_password_view(Evas_Object *ly, int num)
 {
        if (num == 0)
                elm_object_part_text_set(ly, "sw.entry", "_ _ _ _");
@@ -90,7 +51,7 @@ void _update_password_view(Evas_Object *ly, int num)
                elm_object_part_text_set(ly, "sw.entry", "= Password OK! =");
 }
 
-void _dbus_send_sys_lock_unlock_signal(void)
+static void _dbus_send_sys_lock_unlock_signal(void)
 {
        int ret = 0;
        E_DBus_Connection *conn;
@@ -111,7 +72,7 @@ void _dbus_send_sys_lock_unlock_signal(void)
        DBG("%s-%s", SYS_LOCK_INTERFACE_UNLOCK, SYS_LOCK_MEMBER_UNLOCK);
 }
 
-int _dbus_receive_lazy_mount_status(void (*changed_cb)(void *data, DBusMessage *msg), void *data)
+static int _dbus_receive_lazy_mount_status(void (*changed_cb)(void *data, DBusMessage *msg), void *data)
 {
        E_DBus_Connection *conn;
        E_DBus_Signal_Handler *handler;
@@ -146,7 +107,46 @@ static void _lazy_mount_status_changed_cb(void *data, DBusMessage *msg)
        }
 }
 
-char *_get_resource_full_path(const char *file_path)
+static void _input_password(Evas_Object *ly, const char *txt)
+{
+       char tmp[BUF_SIZE] = { 0, };
+
+       if (now >= 4 || isUnlocked)
+               return;
+
+       snprintf(tmp, BUF_SIZE, "%s%s", buf, txt);
+       strncpy(buf,tmp,BUF_SIZE);
+       now++;
+
+       if (!strcmp(STR_PASSWORD, buf)) {
+               _dbus_send_sys_lock_unlock_signal();
+               isUnlocked = true;
+               _update_password_view(ly, 5);
+       } else {
+               _update_password_view(ly, now);
+       }
+}
+
+static void _clear_password(Evas_Object *ly)
+{
+       if (now <= 0)
+               return;
+
+       now--;
+       buf[now] = '\0';
+
+       _update_password_view(ly, now);
+}
+
+static void _clear_all_password(Evas_Object *ly)
+{
+       memset(buf, 0, BUF_SIZE);
+       now = 0;
+
+       _update_password_view(ly, now);
+}
+
+static char *_get_resource_full_path(const char *file_path)
 {
        char *ret = NULL;
        char full_path[PATH_MAX] = { 0, };
@@ -162,7 +162,7 @@ char *_get_resource_full_path(const char *file_path)
        return ret;
 }
 
-Evas_Object *_window_create(void)
+static Evas_Object *_window_create(void)
 {
        Evas_Object *win = elm_win_add(NULL, "FOTALOCK", ELM_WIN_BASIC);
        char *full_path = NULL;