update libevdev/libevdev-uinput.c.

Signed-off-by: houchengyu <houchengyu@huawei.com>
This commit is contained in:
houchengyu
2023-04-10 11:39:05 +00:00
committed by Gitee
parent 5550295b5a
commit 8a88a0f55d
+1 -1
View File
@@ -468,7 +468,7 @@ libevdev_uinput_write_event(const struct libevdev_uinput *uinput_dev,
unsigned int code,
int value)
{
struct input_event ev = { {0,0}, type, code, value };
struct input_event ev = {type, code, value};
int fd = libevdev_uinput_get_fd(uinput_dev);
int rc, max;