1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-23 02:03:02 +01:00
This commit is contained in:
Jfreegman 2013-11-30 16:09:45 -05:00
parent f6a6aecaf5
commit c25296e65a
3 changed files with 5 additions and 9 deletions

View File

@ -17,7 +17,6 @@
extern char *DATA_FILE;
extern int store_data(Tox *m, char *path);
extern int num_groupchats;
extern FileSender file_senders[MAX_FILES];
extern ToxicFriend friends[MAX_FRIENDS_NUM];
@ -184,7 +183,7 @@ static void chat_onFileControl(ToxWindow *self, Tox *m, int num, uint8_t receive
wprintw(ctx->history, "File transfer for '%s' accepted.\n", filename);
break;
case TOX_FILECONTROL_PAUSE:
wprintw(ctx->history, "File transfer for '%s' paused.\n", filename);
// wprintw(ctx->history, "File transfer for '%s' paused.\n", filename);
break;
case TOX_FILECONTROL_KILL:
wprintw(ctx->history, "File transfer for '%s' failed.\n", filename);

View File

@ -332,12 +332,10 @@ static void load_data(Tox *m, char *path)
tox_load(m, buf, len);
uint32_t i = 0;
uint8_t name[TOX_MAX_NAME_LENGTH];
while (tox_get_name(m, i, name) != -1) {
on_friendadded(m, i);
i++;
}
while (tox_get_name(m, i, name) != -1)
on_friendadded(m, i++);
free(buf);
fclose(fd);

View File

@ -13,7 +13,6 @@ extern char *DATA_FILE;
static ToxWindow windows[MAX_WINDOWS_NUM];
static ToxWindow *active_window;
static int num_windows;
extern ToxWindow *prompt;