[PATCH evemu 2/2] tools: evemu-device: replace spaces by tabs

Benjamin Tissoires benjamin.tissoires at gmail.com
Thu Jan 9 14:15:11 PST 2014


Tabs are used throughout the tools .c files, so fix that.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>
---
 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



More information about the Input-tools mailing list