mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-12 23:10:20 +01:00
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>
This commit is contained in:
parent
6a6435ae4b
commit
1b00eb5e03
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue