From 675c8fa89f3e1f62614ecd944ff00c4aecea7545 Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Wed, 5 Mar 2014 03:37:07 -0500 Subject: [PATCH] fix --- src/chat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/chat.c b/src/chat.c index c23d0ff..c0b45a8 100644 --- a/src/chat.c +++ b/src/chat.c @@ -237,7 +237,7 @@ static void chat_onFileSendRequest(ToxWindow *self, Tox *m, int num, uint8_t fil alert_window(self, WINDOW_ALERT_2, true); } -static void close_file_receiver(num, filenum) +static void close_file_receiver(int num, int filenum) { friends[num].file_receiver.pending[filenum] = false; FILE *file = friends[num].file_receiver.files[filenum]; @@ -254,7 +254,6 @@ static void chat_onFileControl(ToxWindow *self, Tox *m, int num, uint8_t receive ChatContext *ctx = self->chatwin; uint8_t *filename; - bool close_in_file = false; if (receive_send == 0) filename = friends[num].file_receiver.filenames[filenum];