summaryrefslogtreecommitdiff
path: root/src/examples/dlt-example-user.c
diff options
context:
space:
mode:
authorDinh Cong Toan <toan.dinhcong@vn.bosch.com>2020-11-19 18:41:13 +0700
committerSaya Sugiura <ssugiura@jp.adit-jv.com>2021-01-06 09:19:55 +0900
commite33aaa529a0225a085008ec4b5344e884d5da36a (patch)
tree9a324da77335ab1ae25e614c892ad98acac030dd /src/examples/dlt-example-user.c
parent9f497215050a4d150bbf2e9187d137c09e5335b0 (diff)
downloadDLT-daemon-e33aaa529a0225a085008ec4b5344e884d5da36a.tar.gz
other: fix remaining conversion warnings
- Converting datatype to the correct one. - As macro do not perform type-checking before, so these functions used it with different datatype could create a lot of conversion warnings. For this reason, these warnings could be consider as normal information and will not be fixed. Signed-off-by: Dinh Cong Toan <toan.dinhcong@vn.bosch.com>
Diffstat (limited to 'src/examples/dlt-example-user.c')
-rw-r--r--src/examples/dlt-example-user.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/dlt-example-user.c b/src/examples/dlt-example-user.c
index fabb1d7..66515c6 100644
--- a/src/examples/dlt-example-user.c
+++ b/src/examples/dlt-example-user.c
@@ -247,8 +247,8 @@ int main(int argc, char *argv[])
message = argv[index];
}
else { /* allocate raw buffer */
- message = calloc(sizeof(char), rvalue);
- memset(message, 'X', rvalue - 1);
+ message = calloc(sizeof(char), (size_t) rvalue);
+ memset(message, 'X', (size_t) (rvalue - 1)) ;
}
if (message == 0) {
@@ -315,7 +315,7 @@ int main(int argc, char *argv[])
delay = 500;
if (tvalue)
- dlt_set_resend_timeout_atexit(atoi(tvalue));
+ dlt_set_resend_timeout_atexit((uint32_t) atoi(tvalue));
if (gflag) {
/* DLT messages to test Fibex non-verbose description: dlt-example-non-verbose.xml */