git-svn: trunk@106
Tomasz Kojm authored on 2003/11/09 11:44:17... | ... |
@@ -531,8 +531,8 @@ int acceptloop(int socketd, struct cl_node *root, const struct cfgstruct *copt) |
531 | 531 |
* We need to allow for that. |
532 | 532 |
*/ |
533 | 533 |
pthread_attr_getstacksize(&thattr, &stacksize); |
534 |
- cli_dbgmsg("set stacksize to %u\n", stacksize + BUFFSIZE + 64 * 1024); |
|
535 |
- pthread_attr_setstacksize(&thattr, stacksize + BUFFSIZE + 64 * 1024); |
|
534 |
+ cli_dbgmsg("set stacksize to %u\n", stacksize + SCANBUFF + 64 * 1024); |
|
535 |
+ pthread_attr_setstacksize(&thattr, stacksize + SCANBUFF + 64 * 1024); |
|
536 | 536 |
#endif |
537 | 537 |
|
538 | 538 |
while(1) { |
... | ... |
@@ -380,7 +380,7 @@ int filecopy(const char *src, const char *dest) |
380 | 380 |
int s, d; |
381 | 381 |
off_t offset; |
382 | 382 |
#else |
383 |
- char buffer[BUFFSIZE]; |
|
383 |
+ char buffer[FILEBUFF]; |
|
384 | 384 |
int s, d, bytes; |
385 | 385 |
#endif |
386 | 386 |
|
... | ... |
@@ -410,7 +410,7 @@ int filecopy(const char *src, const char *dest) |
410 | 410 |
return -1; |
411 | 411 |
} |
412 | 412 |
#else |
413 |
- while((bytes = read(s, buffer, BUFFSIZE)) > 0) |
|
413 |
+ while((bytes = read(s, buffer, FILEBUFF)) > 0) |
|
414 | 414 |
write(d, buffer, bytes); |
415 | 415 |
#endif |
416 | 416 |
|