tGet rid of 'chunksz' attribute in transfer struct - ratox - FIFO based tox client
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 35cc6c1e09ad25246ddac31da0735aeb7912463f
 (DIR) parent 07adc70417a23b143d445adea30b56f89a76cf01
 (HTM) Author: z3bra <contactatz3bradotorg>
       Date:   Tue,  8 Nov 2016 21:46:38 +0100
       
       Get rid of 'chunksz' attribute in transfer struct
       
       Diffstat:
         M ratox.c                             |       4 +---
       
       1 file changed, 1 insertion(+), 3 deletions(-)
       ---
 (DIR) diff --git a/ratox.c b/ratox.c
       t@@ -117,7 +117,6 @@ enum { TRANSFER_NONE, TRANSFER_INITIATED, TRANSFER_PENDING, TRANSFER_INPROGRESS,
        struct transfer {
                uint32_t fnum;
                uint8_t *buf;
       -        int      chunksz;
                ssize_t  n;
                int      pendingbuf;
                int      state;
       t@@ -677,8 +676,7 @@ cbfilecontrol(Tox *m, uint32_t frnum, uint32_t fnum, TOX_FILE_CONTROL ctrltype, 
                                f->tx.state = TRANSFER_INPROGRESS;
                        } else {
                                f->tx.fnum = fnum;
       -                        f->tx.chunksz = TOX_MAX_CUSTOM_PACKET_SIZE;
       -                        f->tx.buf = malloc(f->tx.chunksz);
       +                        f->tx.buf = malloc(TOX_MAX_CUSTOM_PACKET_SIZE);
                                if (!f->tx.buf)
                                        eprintf("malloc:");
                                f->tx.n = 0;