summaryrefslogtreecommitdiff
path: root/src/daemon/dlt-daemon.c
diff options
context:
space:
mode:
authorDinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com>2020-10-08 17:03:45 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-01-06 09:27:28 +0900
commit84788584b2accd96776762a688381737e1483361 (patch)
tree5d54f401cb15c20895034edf1c819bb8fd9555c6 /src/daemon/dlt-daemon.c
parent8e9028154341a89a2ebebb9e831a0afaf8fe9b0c (diff)
downloadDLT-daemon-84788584b2accd96776762a688381737e1483361.tar.gz
gateway: fix compile warnings
- Correct the data type of 'headersize' and 'datasize' variables in header 'dlt_common.h', then config those functions using this library. - Explicit the data type. Signed-off-by: Dinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com>
Diffstat (limited to 'src/daemon/dlt-daemon.c')
-rw-r--r--src/daemon/dlt-daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/dlt-daemon.c b/src/daemon/dlt-daemon.c
index 8e37c17..bfe11d0 100644
--- a/src/daemon/dlt-daemon.c
+++ b/src/daemon/dlt-daemon.c
@@ -2373,7 +2373,7 @@ int dlt_daemon_process_user_messages(DltDaemon *daemon,
{
int offset = 0;
int run_loop = 1;
- int32_t min_size = (int32_t)sizeof(DltUserHeader);
+ int32_t min_size = (int32_t) sizeof(DltUserHeader);
DltUserHeader *userheader;
int recv;
@@ -3042,7 +3042,7 @@ int dlt_daemon_process_user_message_log(DltDaemon *daemon,
#else
ret = dlt_message_read(&(daemon_local->msg),
(unsigned char *)rec->buf + sizeof(DltUserHeader),
- rec->bytesRcvd - sizeof(DltUserHeader),
+ (unsigned int) (rec->bytesRcvd - sizeof(DltUserHeader)),
0,
verbose);