1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-06-29 06:56:44 +02:00

type fixes

This commit is contained in:
Jfreegman
2014-03-19 03:14:08 -04:00
parent 50a37495f8
commit d49e911fe4
10 changed files with 20 additions and 22 deletions

View File

@ -60,7 +60,7 @@ void cmd_accept(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[
return;
}
int friendnum = tox_add_friend_norequest(m, pending_frnd_requests[req]);
int32_t friendnum = tox_add_friend_norequest(m, pending_frnd_requests[req]);
if (friendnum == -1)
wprintw(window, "Failed to add friend.\n");
@ -134,7 +134,7 @@ void cmd_add(WINDOW *window, ToxWindow *self, Tox *m, int argc, char (*argv)[MAX
id[i] = toupper(id[i]);
}
int f_num = tox_add_friend(m, id_bin, msg, strlen(msg) + 1);
int32_t f_num = tox_add_friend(m, id_bin, msg, strlen(msg) + 1);
switch (f_num) {
case TOX_FAERR_TOOLONG: