summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFRIGN <dev@frign.de>2014-09-29 18:29:37 +0200
committersin <sin@2f30.org>2014-09-29 17:53:27 +0100
commit6032d2c761069a58a2d75e32fdb676ea7dd01974 (patch)
treecce1613bab43c4281aa76cce63ac59ed9db3109e
parenta1c948e61f87b29dc9ed5a35364ee25af7e8df49 (diff)
Small refactor in printrat()
Don't use 3 printf's when 1 is possible.
-rw-r--r--ratox.c8
1 files 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