Fix the build warnings and typo error
[platform/core/connectivity/bluetooth-frwk.git] / bt-service-adaptation / services / bt-request-handler.c
index 2acfa31..28a950a 100644 (file)
@@ -2281,7 +2281,7 @@ int __bt_bluez_request(int function_name,
 
                BT_ERR("sending acquire write  respose sent \n  ");
 
-               fd_list_array = g_unix_fd_list_peek_fds(fd_list, &len);
+               fd_list_array = (int *)g_unix_fd_list_peek_fds(fd_list, &len);
                BT_INFO("Num fds in fd_list is : %d, fd_list[0]: %d", len, fd_list_array[0]);
                fd = fd_list_array[0];
 
@@ -2314,7 +2314,7 @@ int __bt_bluez_request(int function_name,
 
                BT_ERR("sending acquire write  respose sent \n  ");
 
-               fd_list_array = g_unix_fd_list_peek_fds(fd_list, &len);
+               fd_list_array = (int *)g_unix_fd_list_peek_fds(fd_list, &len);
                BT_INFO("Num fds in fd_list is : %d, fd_list[0]: %d", len, fd_list_array[0]);
                fd = fd_list_array[0];