summaryrefslogtreecommitdiff
path: root/src/sysdeps/trysplice.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps/trysplice.c')
-rw-r--r--src/sysdeps/trysplice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sysdeps/trysplice.c b/src/sysdeps/trysplice.c
index a408f13..7428418 100644
--- a/src/sysdeps/trysplice.c
+++ b/src/sysdeps/trysplice.c
@@ -18,7 +18,7 @@ int main (void)
for (;;)
{
- register int r = splice(fd, 0, p[1], 0, N, 0) ;
+ ssize_t r = splice(fd, 0, p[1], 0, N, 0) ;
if (r < 0) return 1 ;
if (!r) break ;
if (splice(p[0], 0, 1, 0, r, 0) < r) return 2 ;