aboutsummaryrefslogtreecommitdiff
path: root/nDPId.c
diff options
context:
space:
mode:
authorToni Uhlig <matzeton@googlemail.com>2022-09-10 22:45:12 +0200
committerToni Uhlig <matzeton@googlemail.com>2022-09-10 22:45:12 +0200
commita992c79ab6bcf352cd88f5d7383e5c9fa091f489 (patch)
tree20c5c217a84b72bd0e2858a98a96ada3138d2f9a /nDPId.c
parent6fe5d1da6979782955902b01f54a8bc9cf7b826b (diff)
Fixed compilation warnings on linux32 platforms.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'nDPId.c')
-rw-r--r--nDPId.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nDPId.c b/nDPId.c
index d7482ad66..69b067c0b 100644
--- a/nDPId.c
+++ b/nDPId.c
@@ -2101,15 +2101,15 @@ static void send_to_collector(struct nDPId_reader_thread * const reader_thread,
}
else if (collector_address.raw.sa_family == AF_UNIX)
{
- off_t pos = (written < 0 ? 0 : written);
+ size_t pos = (written < 0 ? 0 : written);
logger(0,
- "[%8llu, %zu] Send less data then expected (%zd < %d bytes), falling back to blocking I/O",
+ "[%8llu, %zu] Send less data then expected (%zu < %d bytes), falling back to blocking I/O",
workflow->packets_captured,
reader_thread->array_index,
pos,
s_ret);
set_collector_block(reader_thread);
- while ((written = write(reader_thread->collector_sockfd, newline_json_str + pos, s_ret - pos)) !=
+ while ((size_t)(written = write(reader_thread->collector_sockfd, newline_json_str + pos, s_ret - pos)) !=
s_ret - pos)
{
saved_errno = errno;