]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfsprogs: replace sendfile64 by equivalent sendfile
authorFelix Janda <felix.janda@posteo.de>
Tue, 1 Nov 2016 01:38:34 +0000 (12:38 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 1 Nov 2016 01:38:34 +0000 (12:38 +1100)
Signed-off-by: Felix Janda <felix.janda@posteo.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
io/sendfile.c

index c082acf3088f702cb89dc313109197de31aa9248..edd31c92e0333d0d87e174369bd27f84e3c4c845 100644 (file)
@@ -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++;