From 20aad9c73bfad93099a2614d7be1fe8a245665c7 Mon Sep 17 00:00:00 2001 From: Ryan Lewon Date: Tue, 30 Jul 2013 07:26:58 +0000 Subject: [PATCH] Removed unneeded include. Fixed formatting and cleaned up output. --- testing/nTox.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/testing/nTox.c b/testing/nTox.c index b5fff89d..b926ebca 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -20,7 +20,6 @@ * along with Tox. If not, see . * */ -#include "../core/DHT.c" #include "nTox.h" #include "misc_tools.h" @@ -62,9 +61,9 @@ void print_friendlist() getname(i, (uint8_t*)name); if (strlen(name) <= 0) { - sprintf(fstring, "[i] Friend: NULL\n\tid: %i", i); - } else { - sprintf(fstring, "[i] Friend: %s\n\tid: %i", (uint8_t*)name, i); + sprintf(fstring, "[i] Friend: NULL\n\tid: %i", i); + } else { + sprintf(fstring, "[i] Friend: %s\n\tid: %i", (uint8_t*)name, i); } new_lines(fstring); }