From b32f62cff30c6d02dcf89a5cfdb0215a044ce519 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Sat, 5 Jul 2014 21:53:54 -0700 Subject: [PATCH 1/1] Rename open_fd to device_fd --- keystroke-timestamps.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/keystroke-timestamps.c b/keystroke-timestamps.c index 037919f..d7aeaf6 100644 --- a/keystroke-timestamps.c +++ b/keystroke-timestamps.c @@ -40,14 +40,14 @@ int main (int argc, char **argv) err(EX_NOINPUT, "Could not glob keyboard event file(s): %s", device); } for (unsigned i = 0; i < glob_result.gl_pathc; i++) { - int open_fd = open(glob_result.gl_pathv[i], O_RDONLY); - if (open_fd < 0) { + int device_fd = open(glob_result.gl_pathv[i], O_RDONLY); + if (device_fd < 0) { err(EX_NOINPUT, "Could not open keyboard event file: %s", glob_result.gl_pathv[i]); } - if (open_fd > maxfd) { - maxfd = open_fd; + if (device_fd > maxfd) { + maxfd = device_fd; } - FD_SET(open_fd, &all_inputs); + FD_SET(device_fd, &all_inputs); } globfree(&glob_result); -- 2.51.2