summaryrefslogtreecommitdiffstats
path: root/hidd/fakehid.c
diff options
context:
space:
mode:
Diffstat (limited to 'hidd/fakehid.c')
-rw-r--r--hidd/fakehid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hidd/fakehid.c b/hidd/fakehid.c
index 0d87335b..138d2b48 100644
--- a/hidd/fakehid.c
+++ b/hidd/fakehid.c
@@ -47,6 +47,7 @@
static void event(int fd, uint16_t type, uint16_t code, int32_t value)
{
struct uinput_event event;
+ int len;
if (fd <= fileno(stderr))
return;
@@ -56,7 +57,7 @@ static void event(int fd, uint16_t type, uint16_t code, int32_t value)
event.code = code;
event.value = value;
- write(fd, &event, sizeof(event));
+ len = write(fd, &event, sizeof(event));
}
static void func(int fd)