Fix space/tab indentation

This commit is contained in:
Marco Hinz 2013-07-31 10:36:02 +02:00
parent 52a77cc997
commit 439de6fa3a
3 changed files with 12 additions and 12 deletions

View File

@ -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);
}

View File

@ -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') {

View File

@ -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;