Revision 14893aa5 loop.c

View differences:

loop.c
104 104
  }
105 105
}
106 106

  
107
void source_loop(const char *fname, struct nodeID *s, int csize, int chunks, bool loop)
107
void source_loop(const char *fname, struct nodeID *s, int csize, int chunks, bool loop, int buff_size)
108 108
{
109 109
  int done = 0;
110 110
  static uint8_t buff[BUFFSIZE];
......
117 117
  
118 118
  peers_init();
119 119

  
120
  if (source_init(fname, s, loop, fds, FDSSIZE) < 0) {
120
  if (source_init(fname, s, loop, fds, FDSSIZE, buff_size) < 0) {
121 121
    fprintf(stderr,"Cannot initialize source, exiting");
122 122
    return;
123 123
  }

Also available in: Unified diff