The version number queried by this ioctl call is never used. Delete it. -- Nick
From 3addf78f5670c24ed8f8f9717947bb24870ea0b5 Mon Sep 17 00:00:00 2001 From: Nick Kralevich <[email protected]> Date: Mon, 27 Aug 2018 11:18:38 -0700 Subject: [PATCH] sendevent: remove ioctl call
The version number queried by this ioctl call is never used. Delete it. Signed-off-by: Nick Kralevich <[email protected]> --- toys/android/sendevent.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/toys/android/sendevent.c b/toys/android/sendevent.c index 8e982e0..6d1f124 100644 --- a/toys/android/sendevent.c +++ b/toys/android/sendevent.c @@ -22,12 +22,8 @@ config SENDEVENT void sendevent_main(void) { int fd = xopen(*toys.optargs, O_RDWR); - int version; struct input_event ev; - if (ioctl(fd, EVIOCGVERSION, &version)) - perror_exit("EVIOCGVERSION failed for %s", *toys.optargs); - memset(&ev, 0, sizeof(ev)); // TODO: error checking and support for named constants. ev.type = atoi(toys.optargs[1]); -- 2.19.0.rc0.228.g281dcd1b4d0-goog
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
