From b97909c538e243d65c8edd65e24df113496e023b Mon Sep 17 00:00:00 2001 From: leitner Date: Mon, 6 Oct 2003 01:55:49 +0000 Subject: [PATCH] remove warning --- io/io_sendfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io/io_sendfile.c b/io/io_sendfile.c index 399d955..fd04a49 100644 --- a/io/io_sendfile.c +++ b/io/io_sendfile.c @@ -10,9 +10,9 @@ int64 io_sendfile(int64 s,int64 fd,uint64 off,uint64 n) { off_t sbytes; int r=sendfile(fd,s,off,n,0,&sbytes,0); - if (r==0) return n; if (r==-1) return (errno==EAGAIN?(sbytes?sbytes:-1):-3); + return n; } #elif defined(__linux__)