summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_event_handler.c
diff options
context:
space:
mode:
authorDinh Cong Toan <toan.dinhcong@vn.bosch.com>2020-11-19 18:41:13 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2021-01-06 09:27:28 +0900
commit360ccb0463aa7cf766d3a8228558cdc6478309a1 (patch)
tree9a324da77335ab1ae25e614c892ad98acac030dd /src/daemon/dlt_daemon_event_handler.c
parent906578850094f8f5e9ce488c71ad831b2f35330c (diff)
downloadDLT-daemon-360ccb0463aa7cf766d3a8228558cdc6478309a1.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/daemon/dlt_daemon_event_handler.c')
-rw-r--r--src/daemon/dlt_daemon_event_handler.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_event_handler.c b/src/daemon/dlt_daemon_event_handler.c
index 6c33d23..3cecf64 100644
--- a/src/daemon/dlt_daemon_event_handler.c
+++ b/src/daemon/dlt_daemon_event_handler.c
@@ -111,7 +111,7 @@ static void dlt_event_handler_enable_fd(DltEventHandler *ev, int fd, int mask)
if (ev->max_nfds <= ev->nfds) {
int i = (int) ev->nfds;
int max = (int) (2 * ev->max_nfds);
- struct pollfd *tmp = realloc(ev->pfd, max * sizeof(*ev->pfd));
+ struct pollfd *tmp = realloc(ev->pfd, (size_t) (max) * sizeof(*ev->pfd));
if (!tmp) {
dlt_log(LOG_CRIT,