remote_app_info->remote_app_id = strdup(remote_app_id);
if (remote_app_info->remote_app_id == NULL) {
- ret_val = MESSAGE_PORT_ERROR_OUT_OF_MEMORY;;
+ ret_val = MESSAGE_PORT_ERROR_OUT_OF_MEMORY;
goto out;
}
offset = message->sent_bytes;
ret = write_socket(sockfd, (char *)message->data + offset,
- message->data_len -offset, &nb, &sequence);
+ message->data_len - offset, &nb, &sequence);
if (ret != MESSAGE_PORT_ERROR_NONE) {
_LOGE("write data fail");
out:
if (ret == MESSAGE_PORT_ERROR_RESOURCE_UNAVAILABLE) {
if (is_startline)
- message->sent_bytes += nb;
+ message->sent_bytes += nb;
else
- message->sent_bytes = nb;
+ message->sent_bytes = nb;
message->sequence = sequence;
_LOGE("send_delayed_message fail : sockfd (%d) sequence(%d) sent byte(%d)",
return FALSE;
}
- if ((fd = g_io_channel_unix_get_fd(gio)) < 0) {
+ fd = g_io_channel_unix_get_fd(gio);
+ if (fd < 0) {
_LOGE("fail to get fd from io channel");
__callback_info_free_by_info(mi);
return FALSE;
}
- if ((pkt = __message_port_recv_raw(fd)) == NULL) {
+ pkt = __message_port_recv_raw(fd);
+ if (pkt == NULL) {
_LOGE("recv error on SOCKET");
__callback_info_free_by_info(mi);
return FALSE;