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_serial.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_serial.c')
-rw-r--r-- | src/daemon/dlt_daemon_serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/dlt_daemon_serial.c b/src/daemon/dlt_daemon_serial.c index 1b6507d..36b7990 100644 --- a/src/daemon/dlt_daemon_serial.c +++ b/src/daemon/dlt_daemon_serial.c @@ -76,13 +76,13 @@ int dlt_daemon_serial_send(int sock, void *data1, int size1, void *data2, int si /* Send data */ if (data1 && (size1 > 0)) - if (0 > write(sock, data1, (size_t) size1)) + if (0 > write(sock, data1, size1)) return DLT_DAEMON_ERROR_SEND_FAILED; if (data2 && (size2 > 0)) - if (0 > write(sock, data2, (size_t) size2)) + if (0 > write(sock, data2, size2)) return DLT_DAEMON_ERROR_SEND_FAILED; return DLT_DAEMON_ERROR_OK; |