Clean-up around sendfile(): drop an excessive check for error condition.
This commit is contained in:
parent
2e22b91434
commit
2f492fc883
@ -2042,9 +2042,9 @@ send_data(FILE *instr, FILE *outstr, off_t blksize, off_t filesize, int isreg)
|
||||
off_t offset;
|
||||
int err;
|
||||
|
||||
err = cnt = offset = 0;
|
||||
cnt = offset = 0;
|
||||
|
||||
while (err != -1 && filesize > 0) {
|
||||
while (filesize > 0) {
|
||||
err = sendfile(filefd, netfd, offset, 0,
|
||||
(struct sf_hdtr *) NULL, &cnt, 0);
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user