From 6c66f9a8e5092b2f5d4e3e2fcfdd465ff675566a Mon Sep 17 00:00:00 2001 From: Antti K Date: Wed, 30 Jul 2014 00:02:08 +0200 Subject: `puts` when `printf`ing a string only Easier to read. (Compilers would probably optimise the `printf` into a `puts` anyway.) --- xkbcat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xkbcat.c b/xkbcat.c index 4afab90..4453a90 100644 --- a/xkbcat.c +++ b/xkbcat.c @@ -92,6 +92,5 @@ void printKeyPress(Display * disp, int code, bool down, bool printKeyUps) { if (printKeyUps) printf("%s %s\n", (down ? "+" : "-"), str); else - printf("%s\n", str); - + puts(str); } -- cgit v1.3-2-g0d8e