summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2021-02-23 16:55:43 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2021-02-23 16:55:58 +1000
commit1b00eb5e039cdffd59f509dab2c1b18b5de271b5 (patch)
treeaf19e8756b2cd753be465dc8a577f3c858a57d65 /tools
parent6a6435ae4bd415ea2e7da1486d9c0d910378ec0d (diff)
downloadlibinput-1b00eb5e039cdffd59f509dab2c1b18b5de271b5.tar.gz
tools/record: fix two coverity complaints
In both cases we only read to drain the fd, we don't care about the return value. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/libinput-record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libinput-record.c b/tools/libinput-record.c
index fb5ae4a3..3f935520 100644
--- a/tools/libinput-record.c
+++ b/tools/libinput-record.c
@@ -2199,7 +2199,7 @@ signalfd_dispatch(struct record_context *ctx, int fd, void *data)
{
struct signalfd_siginfo fdsi;
- read(fd, &fdsi, sizeof(fdsi));
+ (void)read(fd, &fdsi, sizeof(fdsi));
ctx->stop = true;
}
@@ -2209,7 +2209,7 @@ timefd_dispatch(struct record_context *ctx, int fd, void *data)
{
char discard[64];
- read(fd, discard, sizeof(discard));
+ (void)read(fd, discard, sizeof(discard));
if (ctx->timestamps.had_events_since_last_time) {
print_wall_time(ctx);