From: Felix Janda Date: Tue, 1 Nov 2016 01:38:34 +0000 (+1100) Subject: xfsprogs: replace sendfile64 by equivalent sendfile X-Git-Tag: v4.9.0-rc1~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fe998999903bcbb94cc302caac641c4eaf30ba6;p=thirdparty%2Fxfsprogs-dev.git xfsprogs: replace sendfile64 by equivalent sendfile Signed-off-by: Felix Janda Reviewed-by: Christoph Hellwig Signed-off-by: Dave Chinner --- diff --git a/io/sendfile.c b/io/sendfile.c index c082acf30..edd31c92e 100644 --- a/io/sendfile.c +++ b/io/sendfile.c @@ -56,11 +56,11 @@ send_buffer( *total = 0; while (count > 0) { - bytes = sendfile64(file->fd, fd, &off, bytes_remaining); + bytes = sendfile(file->fd, fd, &off, bytes_remaining); if (bytes == 0) break; if (bytes < 0) { - perror("sendfile64"); + perror("sendfile"); return -1; } ops++;