projects
/
platform
/
upstream
/
libinput.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a6435a
)
tools/record: fix two coverity complaints
author
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 23 Feb 2021 06:55:43 +0000
(16:55 +1000)
committer
Peter Hutterer
<peter.hutterer@who-t.net>
Tue, 23 Feb 2021 06:55:58 +0000
(16:55 +1000)
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>
tools/libinput-record.c
patch
|
blob
|
history
diff --git
a/tools/libinput-record.c
b/tools/libinput-record.c
index
fb5ae4a
..
3f93552
100644
(file)
--- 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);