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/dlt-convert.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/dlt-convert.c')
-rw-r--r-- | src/console/dlt-convert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/console/dlt-convert.c b/src/console/dlt-convert.c index fa42466..7d69bff 100644 --- a/src/console/dlt-convert.c +++ b/src/console/dlt-convert.c @@ -150,7 +150,7 @@ void empty_dir(const char *dir) if (stat(dir, &st) == 0) { if (S_ISDIR(st.st_mode)) { - n = scandir(dir, &files, NULL, alphasort); + n = (uint32_t) scandir(dir, &files, NULL, alphasort); /* Do not include /. and /.. */ if (n < 2) @@ -464,11 +464,11 @@ int main(int argc, char *argv[]) /* if file output enabled write message */ if (ovalue) { iov[0].iov_base = file.msg.headerbuffer; - iov[0].iov_len = file.msg.headersize; + iov[0].iov_len = (uint32_t) file.msg.headersize; iov[1].iov_base = file.msg.databuffer; - iov[1].iov_len = file.msg.datasize; + iov[1].iov_len = (uint32_t) file.msg.datasize; - bytes_written = writev(ohandle, iov, 2); + bytes_written =(int) writev(ohandle, iov, 2); if (0 > bytes_written) { printf("in main: writev(ohandle, iov, 2); returned an error!"); |