[PATCH evemu 1/6] Add some missing braces
Peter Hutterer
peter.hutterer at who-t.net
Wed Sep 25 16:40:17 PDT 2013
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evemu.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/evemu.c b/src/evemu.c
index 8462a0d..dc37c15 100644
--- a/src/evemu.c
+++ b/src/evemu.c
@@ -651,10 +651,11 @@ int evemu_record(FILE *fp, int fd, int ms)
SYSCALL(ret = read(fd, &ev, sizeof(ev)));
if (ret < 0)
return ret;
- if (ret == sizeof(ev))
+ if (ret == sizeof(ev)) {
evemu_write_event(fp, &ev);
write_event_desc(fp, &ev);
fflush(fp);
+ }
}
return 0;
--
1.8.3.1
More information about the Input-tools
mailing list