[PATCH evemu] tools: evemu-record: set global variables static

Martin Kepplinger martink at posteo.de
Mon Sep 4 17:00:46 UTC 2017


output and autorestart are only used in evemu-record. Declaring them static
makes things a little more readable.

Signed-off-by: Martin Kepplinger <martink at posteo.de>
---
 tools/evemu-record.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/evemu-record.c b/tools/evemu-record.c
index 312254f..0eaa31d 100644
--- a/tools/evemu-record.c
+++ b/tools/evemu-record.c
@@ -57,8 +57,8 @@
 
 #define INFINITE -1
 
-FILE *output;
-bool autorestart = false;
+static FILE *output;
+static bool autorestart = false;
 
 static int describe_device(FILE *output, int fd)
 {
-- 
2.11.0



More information about the Input-tools mailing list