mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Ran it through astyle
This commit is contained in:
parent
a03dcbb54e
commit
1986e6b7f4
|
@ -40,6 +40,7 @@ int realloc_friendlist(Messenger *m, uint32_t num)
|
|||
if (num * sizeof(Friend) == 0) return -1;
|
||||
|
||||
Friend *newfriendlist = realloc(m->friendlist, num * sizeof(Friend));
|
||||
|
||||
if (newfriendlist == NULL && num != 0)
|
||||
return -1;
|
||||
|
||||
|
|
|
@ -273,6 +273,7 @@ void cmd_nick(ToxWindow *self, Messenger *m, char **args)
|
|||
char *nick = args[1];
|
||||
setname(m, (uint8_t *) nick, strlen(nick) + 1);
|
||||
wprintw(self->window, "Nickname set to: %s\n", nick);
|
||||
|
||||
if (store_data(m, DATA_FILE)) {
|
||||
wprintw(self->window, "\nCould not store Messenger data\n");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user