[PATCH evemu] tools: evemu-record: set global variables static
Peter Hutterer
peter.hutterer at who-t.net
Mon Sep 4 23:04:31 UTC 2017
On Mon, Sep 04, 2017 at 07:00:46PM +0200, Martin Kepplinger wrote:
> 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>
thanks, pushed
943cb93..d087635 master -> master
Cheers,
Peter
> ---
> 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
>
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/input-tools
>
More information about the Input-tools
mailing list