1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 13:26:44 +02:00

Fix corresponding API name changes in toxcore.

This commit is contained in:
AZ Huang
2013-11-29 23:14:59 +08:00
parent 4babd53be6
commit 8c0ad1ef80
7 changed files with 49 additions and 49 deletions

View File

@ -191,7 +191,7 @@ static void prompt_onConnectionChange(ToxWindow *self, Tox *m, int friendnum , u
uint8_t nick[TOX_MAX_NAME_LENGTH] = {'\0'};
if (tox_getname(m, friendnum, nick) == -1)
if (tox_get_name(m, friendnum, nick) == -1)
return;
if (!nick[0])
@ -244,7 +244,7 @@ void prompt_init_statusbar(ToxWindow *self, Tox *m)
statusbar->is_online = false;
uint8_t nick[TOX_MAX_NAME_LENGTH] = {'\0'};
tox_getselfname(m, nick, TOX_MAX_NAME_LENGTH);
tox_get_self_name(m, nick, TOX_MAX_NAME_LENGTH);
snprintf(statusbar->nick, sizeof(statusbar->nick), "%s", nick);
/* temporary until statusmessage saving works */