From 49d8fa1058aaf23c29e074b2314492ae40d2f557 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 21 Feb 2017 12:05:07 +0000 Subject: Types change: big pass on libstddjb and libunixonacid libdatastruct still missing, library still not functional --- src/sysdeps/tryipv6.c | 3 +-- src/sysdeps/trynbwaitall.c | 2 +- src/sysdeps/tryppoll.c | 3 +++ src/sysdeps/trysplice.c | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) (limited to 'src/sysdeps') diff --git a/src/sysdeps/tryipv6.c b/src/sysdeps/tryipv6.c index 7a061cc..a384b0a 100644 --- a/src/sysdeps/tryipv6.c +++ b/src/sysdeps/tryipv6.c @@ -14,8 +14,7 @@ int main (void) { - int s ; - register int r ; + int s, r ; struct in6_addr foo ; struct sockaddr_in6 bar ; memset(&foo, 0, sizeof(struct sockaddr_in6)) ; diff --git a/src/sysdeps/trynbwaitall.c b/src/sysdeps/trynbwaitall.c index 90a02e6..a10fd0b 100644 --- a/src/sysdeps/trynbwaitall.c +++ b/src/sysdeps/trynbwaitall.c @@ -34,7 +34,7 @@ static int ndelay_on (int fd) { - register int got = fcntl(fd, F_GETFL) ; + int got = fcntl(fd, F_GETFL) ; return (got == -1) ? -1 : fcntl(fd, F_SETFL, got | O_NONBLOCK) ; } diff --git a/src/sysdeps/tryppoll.c b/src/sysdeps/tryppoll.c index 33380b8..1502f2c 100644 --- a/src/sysdeps/tryppoll.c +++ b/src/sysdeps/tryppoll.c @@ -1,6 +1,9 @@ /* ISC license. */ +#ifndef _GNU_SOURCE #define _GNU_SOURCE +#endif + #include #include #include 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 ; -- cgit v1.2.3