Improve code for human readability 04/229004/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Fri, 27 Mar 2020 04:34:15 +0000 (13:34 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Fri, 27 Mar 2020 04:34:50 +0000 (13:34 +0900)
Change-Id: I3ba1efb2012761a4d98928e2156bcaeba56b6cc7
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
receiver/src/ft.cpp

index 1b03c03..a6cba2f 100644 (file)
@@ -73,7 +73,7 @@ static struct sticker_info sticker_data;
 static queue<StickerRequest> ReqQueue;
 static StickerRequest current_request;
 
-gboolean file_on_progress = 0;
+static gboolean file_on_progress = FALSE;
 static string incoming_file_name;
 static int t_id = 0;
 static int rec_file_cnt_in_group = 0;
@@ -212,7 +212,7 @@ static void _on_send_completed(sap_file_transaction_h file_transaction,
         }
     }
 
-    file_on_progress = 0;
+    file_on_progress = FALSE;
     sticker_data.reset();
 }
 
@@ -257,7 +257,7 @@ void accept_file()
             break;
     }
 
-    file_on_progress = 1;
+    file_on_progress = TRUE;
 }
 
 bool request_sticker_data(const char *mode, const char *category, const char *type)
@@ -340,7 +340,7 @@ void reject_file()
     int ret = sap_file_transfer_reject(priv_data.file_socket);
     LOGI("ret : %d", ret);
 
-    file_on_progress = 0;
+    file_on_progress = FALSE;
 }
 
 static void _on_receive_file_cb(sap_peer_agent_h peer_agent_h,
@@ -348,7 +348,7 @@ static void _on_receive_file_cb(sap_peer_agent_h peer_agent_h,
                                 const char *file_path,
                                 void *user_data)
 {
-    file_on_progress = 1;
+    file_on_progress = TRUE;
     priv_data.file_socket = socket;
     LOGI("# incoming file request.");
     __set_file_transfer_cb(priv_data.file_socket);