diff options
author | sin <sin@2f30.org> | 2014-09-24 13:57:17 +0100 |
---|---|---|
committer | sin <sin@2f30.org> | 2014-09-24 13:57:17 +0100 |
commit | 7a22a7405d6c963939cce1275961f637c4d99f91 (patch) | |
tree | 25d32ab1f4e2bbbf4011b4676f492fae595ae927 /ratox.c | |
parent | 2940555e6279e9c2012fbef35d7611050b6fbf4c (diff) |
Rename recvfilepending to recvfileactive
Diffstat (limited to 'ratox.c')
-rw-r--r-- | ratox.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -147,7 +147,7 @@ struct friend { char idstr[2 * TOX_CLIENT_ID_SIZE + 1]; int dirfd; int fd[LEN(ffiles)]; - int recvfilepending; + int recvfileactive; struct transfer t; TAILQ_ENTRY(friend) entry; }; @@ -492,7 +492,7 @@ cbfilecontrol(Tox *m, int32_t fid, uint8_t rec_sen, uint8_t fnum, uint8_t ctrlty tox_file_send_control(tox, f->fid, 1, 0, TOX_FILECONTROL_FINISHED, NULL, 0); ftruncate(f->fd[FFILE_PENDING], 0); dprintf(f->fd[FFILE_PENDING], "%d\n", 0); - f->recvfilepending = 0; + f->recvfileactive = 0; if (f->fd[FFILE_OUT] != -1) { close(f->fd[FFILE_OUT]); f->fd[FFILE_OUT] = -1; @@ -525,7 +525,7 @@ cbfilesendreq(Tox *m, int32_t fid, uint8_t fnum, uint64_t fsz, ftruncate(f->fd[FFILE_PENDING], 0); dprintf(f->fd[FFILE_PENDING], "%d\n", 1); - f->recvfilepending = 1; + f->recvfileactive = 1; printout("Pending file transfer request from %s\n", f->namestr[0] == '\0' ? "Anonymous" : f->namestr); } @@ -570,7 +570,7 @@ canceltransfer(struct friend *f) toilet, sizeof(toilet))); } /* Cancel RX transfers */ - if (f->recvfilepending == 1) { + if (f->recvfileactive == 1) { tox_file_send_control(tox, f->fid, 1, 0, TOX_FILECONTROL_KILL, NULL, 0); if (f->fd[FFILE_OUT] != -1) { close(f->fd[FFILE_OUT]); @@ -1231,7 +1231,7 @@ loop(void) TAILQ_FOREACH(f, &friendhead, entry) { if (tox_get_friend_connection_status(tox, f->fid) == 0) continue; - if (f->recvfilepending == 0) + if (f->recvfileactive == 0) continue; if (f->fd[FFILE_OUT] == -1) { r = openat(f->dirfd, ffiles[FFILE_OUT].name, |