summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-03-08 10:53:57 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-03-09 15:08:42 +1000
commit7dc52459b344fb9393e86fe51c77cab77dc22460 (patch)
tree0787b7be184164a1667551a71257a76196bb3747 /tools
parent12410dfba4b903108c8926d68c64ed1c7468902d (diff)
tools: libinput-record: drop unused 'print' argument
And rename the function for more clarity Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/libinput-record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libinput-record.c b/tools/libinput-record.c
index 9c45db91..36a0a6d1 100644
--- a/tools/libinput-record.c
+++ b/tools/libinput-record.c
@@ -238,7 +238,7 @@ print_evdev_events(struct record_context *ctx, struct input_event *e, size_t nev
}
static inline size_t
-handle_frame(struct record_context *ctx, struct record_device *d, bool print)
+handle_evdev_frame(struct record_context *ctx, struct record_device *d)
{
struct libevdev *evdev = d->evdev;
struct input_event e;
@@ -273,7 +273,7 @@ handle_events(struct record_context *ctx, struct record_device *d, bool print)
size_t first_idx = d->nevents;
size_t evcount;
- evcount = handle_frame(ctx, d, print);
+ evcount = handle_evdev_frame(ctx, d);
if (evcount == 0)
break;