diff options
author | Dinh Cong Toan <toan.dinhcong@vn.bosch.com> | 2021-05-25 16:28:21 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-06-30 10:54:59 +0900 |
commit | 1e7d374593ae34c5f1b343a213123d5385852fe7 (patch) | |
tree | 8df78ee5c1112874dc0d4d7c682ff559cbc2d04f /src/daemon/dlt_daemon_socket.c | |
parent | 3bb7eb24092ff771ccfd1119f8c1088f3f78f981 (diff) | |
download | DLT-daemon-1e7d374593ae34c5f1b343a213123d5385852fe7.tar.gz |
dlt message header broken
This commit is to revert the following commits:
- de4a4234
- fb9ff078
- db9917b3
- e4467f0e
- a567e01d
Those commits are from improvement but they seem to
break the dlt message header in some cases.
Signed-off-by: Bui Nguyen Quoc Thanh <thanh.buinguyenquoc@vn.bosch.com>
Diffstat (limited to 'src/daemon/dlt_daemon_socket.c')
-rw-r--r-- | src/daemon/dlt_daemon_socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/dlt_daemon_socket.c b/src/daemon/dlt_daemon_socket.c index 0dd22a9..9db48b9 100644 --- a/src/daemon/dlt_daemon_socket.c +++ b/src/daemon/dlt_daemon_socket.c @@ -196,7 +196,7 @@ int dlt_daemon_socket_sendreliable(int sock, void *data_buffer, int message_size while (data_sent < message_size) { ssize_t ret = send(sock, (uint8_t*)data_buffer + data_sent, - (size_t) (message_size - data_sent), + message_size - data_sent, 0); if (ret < 0) { @@ -204,7 +204,7 @@ int dlt_daemon_socket_sendreliable(int sock, void *data_buffer, int message_size "%s: socket send failed [errno: %d]!\n", __func__, errno); return DLT_DAEMON_ERROR_SEND_FAILED; } else { - data_sent += (int) ret; + data_sent += ret; } } |