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

Fixed some warnings.

This commit is contained in:
irungentoo
2013-08-24 19:16:43 -04:00
parent c628517474
commit e6a13feae8
3 changed files with 10 additions and 7 deletions

View File

@ -89,7 +89,7 @@ void cmd_accept(ToxWindow *self, Tox *m, char **args)
return;
}
num = m_addfriend_norequest(m, pending_requests[num]);
num = tox_addfriend_norequest(m, pending_requests[num]);
if (num == -1)
wprintw(self->window, "Failed to add friend.\n");
@ -139,7 +139,7 @@ void cmd_add(ToxWindow *self, Tox *m, char **args)
id[i] = toupper(id[i]);
}
int num = m_addfriend(m, id_bin, (uint8_t *) msg, strlen(msg) + 1);
int num = tox_addfriend(m, id_bin, (uint8_t *) msg, strlen(msg) + 1);
switch (num) {
case TOX_FAERR_TOOLONG:
@ -255,7 +255,7 @@ void cmd_myid(ToxWindow *self, Tox *m, char **args)
char id[TOX_FRIEND_ADDRESS_SIZE * 2 + 1] = {0};
size_t i;
uint8_t address[TOX_FRIEND_ADDRESS_SIZE];
getaddress(m, address);
tox_getaddress(m, address);
for (i = 0; i < TOX_FRIEND_ADDRESS_SIZE; ++i) {
char xx[3];