splice flags are unsigned int, not unsigned long
authorJens Axboe <jens.axboe@oracle.com>
Fri, 8 Jun 2007 09:24:58 +0000 (11:24 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 8 Jun 2007 09:24:58 +0000 (11:24 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
os/os-linux.h

index dfb6eb987d97b9ff3844dc0c2e684ccc8bb749bf..f4b6a22361bfa1b5d6f04ece4d6f53c882755f50 100644 (file)
@@ -69,7 +69,7 @@ static inline int ioprio_set(int which, int who, int ioprio)
 #define SPLICE_F_GIFT   (0x08)  /* pages passed in are a gift */
 
 static inline int splice(int fdin, loff_t *off_in, int fdout, loff_t *off_out,
 #define SPLICE_F_GIFT   (0x08)  /* pages passed in are a gift */
 
 static inline int splice(int fdin, loff_t *off_in, int fdout, loff_t *off_out,
-                        size_t len, unsigned long flags)
+                        size_t len, unsigned int flags)
 {
        return syscall(__NR_sys_splice, fdin, off_in, fdout, off_out, len, flags);
 }
 {
        return syscall(__NR_sys_splice, fdin, off_in, fdout, off_out, len, flags);
 }