remove warning
This commit is contained in:
parent
0c64df2331
commit
b97909c538
@ -10,9 +10,9 @@
|
|||||||
int64 io_sendfile(int64 s,int64 fd,uint64 off,uint64 n) {
|
int64 io_sendfile(int64 s,int64 fd,uint64 off,uint64 n) {
|
||||||
off_t sbytes;
|
off_t sbytes;
|
||||||
int r=sendfile(fd,s,off,n,0,&sbytes,0);
|
int r=sendfile(fd,s,off,n,0,&sbytes,0);
|
||||||
if (r==0) return n;
|
|
||||||
if (r==-1)
|
if (r==-1)
|
||||||
return (errno==EAGAIN?(sbytes?sbytes:-1):-3);
|
return (errno==EAGAIN?(sbytes?sbytes:-1):-3);
|
||||||
|
return n;
|
||||||
}
|
}
|
||||||
#elif defined(__linux__)
|
#elif defined(__linux__)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user