ratox

FIFO based tox client
git clone git://git.2f30.org/ratox
Log | Files | Refs | README | LICENSE

commit 6032d2c761069a58a2d75e32fdb676ea7dd01974
parent a1c948e61f87b29dc9ed5a35364ee25af7e8df49
Author: FRIGN <dev@frign.de>
Date:   Mon, 29 Sep 2014 18:29:37 +0200

Small refactor in printrat()

Don't use 3 printf's when 1 is possible.

Diffstat:
Mratox.c | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git 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