From 439de6fa3ab50bcb4c401d9175b643b6188786d3 Mon Sep 17 00:00:00 2001 From: Marco Hinz Date: Wed, 31 Jul 2013 10:36:02 +0200 Subject: Fix space/tab indentation --- testing/DHT_cryptosendfiletest.c | 4 ++-- testing/nTox.c | 16 ++++++++-------- testing/toxic/prompt.c | 4 ++-- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/testing/DHT_cryptosendfiletest.c b/testing/DHT_cryptosendfiletest.c index c7c33531..888dac0f 100644 --- a/testing/DHT_cryptosendfiletest.c +++ b/testing/DHT_cryptosendfiletest.c @@ -186,7 +186,7 @@ int main(int argc, char *argv[]) fclose(file2); } } - /* if buffer is empty and the connection timed out. */ + /* if buffer is empty and the connection timed out. */ else if(is_cryptoconnected(inconnection) == 4) { crypto_kill(inconnection); } @@ -209,7 +209,7 @@ int main(int argc, char *argv[]) fclose(file2); } } - /* if buffer is empty and the connection timed out. */ + /* if buffer is empty and the connection timed out. */ else if(is_cryptoconnected(connection) == 4) { crypto_kill(connection); } diff --git a/testing/nTox.c b/testing/nTox.c index 5c560079..04ae55cd 100644 --- a/testing/nTox.c +++ b/testing/nTox.c @@ -72,13 +72,13 @@ void print_friendlist() char *format_message(char *message, int friendnum) { - char name[MAX_NAME_LENGTH]; - if(friendnum != -1) { - getname(friendnum, (uint8_t*)name); - } else { - getself_name((uint8_t*)name); - } - char *msg = malloc(100+strlen(message)+strlen(name)+1); + char name[MAX_NAME_LENGTH]; + if(friendnum != -1) { + getname(friendnum, (uint8_t*)name); + } else { + getself_name((uint8_t*)name); + } + char *msg = malloc(100+strlen(message)+strlen(name)+1); time_t rawtime; struct tm * timeinfo; time ( &rawtime ); @@ -129,7 +129,7 @@ void line_eval(char lines[HISTORY][STRING_LENGTH], char *line) if(m_sendmessage(num, (uint8_t*) message, sizeof(message)) != 1) { new_lines("[i] could not send message"); } else { - new_lines(format_message(message, -1)); + new_lines(format_message(message, -1)); } } else if (line[1] == 'n') { diff --git a/testing/toxic/prompt.c b/testing/toxic/prompt.c index 22d9eb9e..0cd10730 100644 --- a/testing/toxic/prompt.c +++ b/testing/toxic/prompt.c @@ -125,8 +125,8 @@ static void execute(ToxWindow* self, char* cmd) { xx[2] = '\0'; if(sscanf(xx, "%02x", &x) != 1) { - wprintw(self->window, "Invalid ID.\n"); - return; + wprintw(self->window, "Invalid ID.\n"); + return; } id_bin[i] = x; -- cgit v1.2.3