From 6032d2c761069a58a2d75e32fdb676ea7dd01974 Mon Sep 17 00:00:00 2001 From: FRIGN Date: Mon, 29 Sep 2014 18:29:37 +0200 Subject: Small refactor in printrat() Don't use 3 printf's when 1 is possible. --- ratox.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ratox.c b/ratox.c index 1cb81fb..99abe6e 100644 --- a/ratox.c +++ b/ratox.c @@ -207,8 +207,8 @@ static void usage(void); static void printrat(void) { - printf("\033[31m"); - printf( " /y\\ /y\\\n" + printf( "\033[31m" + " /y\\ /y\\\n" " /ver\\ /"VERSION"\\\n" " yyyyyy\\ /yyyyyy\n" " \\yyyyyyyyyyyyyyyyyy/\n" @@ -221,8 +221,8 @@ printrat(void) " \\yyyyyyyy/\n" " -------yyyyyyyy-------\n" " ..---yyyyyy---..\n" - " ..--yyyy--..\n" ); - printf("\033[0m\n"); + " ..--yyyy--..\n" + "\033[0m\n"); } static void -- cgit v1.2.3