summaryrefslogtreecommitdiffstats
path: root/src/libknot/quic
diff options
context:
space:
mode:
authorJan Hák <jan.hak@nic.cz>2023-08-16 15:11:48 +0200
committerJan Hák <jan.hak@nic.cz>2023-08-16 15:11:48 +0200
commit0928ee5355ab12cac7996653435d9ef5fa0016aa (patch)
treed0917094bafb9353ae26f737b3fde3a085e6f680 /src/libknot/quic
parentknotd: fix uninicialized 'uint8_t weight' in 'int parse_view(...)' (diff)
downloadknot-0928ee5355ab12cac7996653435d9ef5fa0016aa.tar.xz
knot-0928ee5355ab12cac7996653435d9ef5fa0016aa.zip
knotd: fix ignoring return value of 'write' in 'void user_qlog(...)'
Diffstat (limited to 'src/libknot/quic')
-rw-r--r--src/libknot/quic/quic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libknot/quic/quic.c b/src/libknot/quic/quic.c
index 298867414..14de160a5 100644
--- a/src/libknot/quic/quic.c
+++ b/src/libknot/quic/quic.c
@@ -748,7 +748,7 @@ static void user_qlog(void *user_data, uint32_t flags, const void *data, size_t
ctx->qlog_fd = open(qlog_name, O_CREAT | O_WRONLY | O_APPEND, 0666);
}
if (ctx->qlog_fd >= 0) { // othewise silently skip
- (void)write(ctx->qlog_fd, data, datalen);
+ _unused_ ssize_t unused = write(ctx->qlog_fd, data, datalen);
if (flags & NGTCP2_QLOG_WRITE_FLAG_FIN) {
close(ctx->qlog_fd);
ctx->qlog_fd = -1;