[PATCH evemu 2/2] tools: evemu-device: replace spaces by tabs
Peter Hutterer
peter.hutterer at who-t.net
Thu Jan 9 15:18:28 PST 2014
On Thu, Jan 09, 2014 at 05:15:11PM -0500, Benjamin Tissoires wrote:
> Tabs are used throughout the tools .c files, so fix that.
>
> Signed-off-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
Cheers,
Peter
> ---
> tools/evemu-device.c | 24 ++++++++++++------------
> 1 file changed, 12 insertions(+), 12 deletions(-)
>
> diff --git a/tools/evemu-device.c b/tools/evemu-device.c
> index 064d116..46ffaeb 100644
> --- a/tools/evemu-device.c
> +++ b/tools/evemu-device.c
> @@ -62,19 +62,19 @@ static void hold_device(struct evemu_device *dev)
> int fd;
>
> const char *device_node = evemu_get_devnode(dev);
> - if (!device_node)
> - {
> - fprintf(stderr, "can not determine device node\n");
> - return;
> - }
> + if (!device_node)
> + {
> + fprintf(stderr, "can not determine device node\n");
> + return;
> + }
>
> - fd = open(device_node, O_RDONLY);
> - if (fd < 0)
> - {
> - fprintf(stderr, "error %d opening %s: %s\n",
> - errno, device_node, strerror(errno));
> - return;
> - }
> + fd = open(device_node, O_RDONLY);
> + if (fd < 0)
> + {
> + fprintf(stderr, "error %d opening %s: %s\n",
> + errno, device_node, strerror(errno));
> + return;
> + }
> fprintf(stdout, "%s: %s\n", evemu_get_name(dev), device_node);
> fflush(stdout);
> while ((ret = read(fd, data, sizeof(data))) > 0);
> --
> 1.8.3.1
>
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/input-tools
More information about the Input-tools
mailing list