diff options
author | irungentoo <irungentoo@gmail.com> | 2015-03-10 18:49:06 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2015-03-10 18:49:06 -0400 |
commit | 8e55d96381cca3b1ca9db18bac715ba2e8a6f558 (patch) | |
tree | cbd6087ae219c5c29959a52a905cb29a32e81c51 /testing/tox_sync.c | |
parent | c434d4857993668ed78668f2edbef29744740fd3 (diff) |
Ported nTox to new file transfer api.
Diffstat (limited to 'testing/tox_sync.c')
-rw-r--r-- | testing/tox_sync.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/testing/tox_sync.c b/testing/tox_sync.c index 785fffeb..bdbd2e3f 100644 --- a/testing/tox_sync.c +++ b/testing/tox_sync.c | |||
@@ -190,6 +190,7 @@ void write_file(Tox *tox, uint32_t friendnumber, uint32_t filenumber, uint64_t p | |||
190 | size_t length, void *user_data) | 190 | size_t length, void *user_data) |
191 | { | 191 | { |
192 | uint8_t file_index = (filenumber >> 16) - 1; | 192 | uint8_t file_index = (filenumber >> 16) - 1; |
193 | |||
193 | if (length == 0) { | 194 | if (length == 0) { |
194 | fclose(file_recv[file_index].file); | 195 | fclose(file_recv[file_index].file); |
195 | printf("File closed\n"); | 196 | printf("File closed\n"); |