mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fix space/tab indentation
This commit is contained in:
parent
52a77cc997
commit
439de6fa3a
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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') {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user