diff options
author | Dinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com> | 2020-10-13 17:07:56 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2021-01-06 09:27:28 +0900 |
commit | 1b3080cea4bb947917f7512ec530f79ce2481b08 (patch) | |
tree | a399bda88c8d0143ed0a6df7dccd83c75b41f121 /src/console/logstorage/dlt-logstorage-common.c | |
parent | 84788584b2accd96776762a688381737e1483361 (diff) | |
download | DLT-daemon-1b3080cea4bb947917f7512ec530f79ce2481b08.tar.gz |
console :fix conversion warnings
- Explicit type conversion from 'signed' to 'unsigned'
Signed-off-by: Dinh Cong Toan(RBVH/ECM12) <Toan.DinhCong@vn.bosch.com>
Diffstat (limited to 'src/console/logstorage/dlt-logstorage-common.c')
-rw-r--r-- | src/console/logstorage/dlt-logstorage-common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/console/logstorage/dlt-logstorage-common.c b/src/console/logstorage/dlt-logstorage-common.c index 5d9c998..0c06a55 100644 --- a/src/console/logstorage/dlt-logstorage-common.c +++ b/src/console/logstorage/dlt-logstorage-common.c @@ -104,7 +104,7 @@ int get_default_event_type(void) void set_default_event_type(long type) { - g_options.event_type = type; + g_options.event_type = (int) type; } char *get_default_path(void) @@ -285,7 +285,7 @@ static DltControlMsgBody *prepare_message_body(DltControlMsgBody **body, serv = (DltServiceOfflineLogstorage *)(*body)->data; serv->service_id = DLT_SERVICE_ID_OFFLINE_LOGSTORAGE; - serv->connection_type = conn_type; + serv->connection_type = (uint8_t) conn_type; /* mount_point is DLT_MOUNT_PATH_MAX + 1 long, * and the memory is already zeroed. */ |