summaryrefslogtreecommitdiff
path: root/src/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'src/sysdeps')
-rw-r--r--src/sysdeps/tryipv6.c3
-rw-r--r--src/sysdeps/trynbwaitall.c2
-rw-r--r--src/sysdeps/tryppoll.c3
-rw-r--r--src/sysdeps/trysplice.c2
4 files changed, 6 insertions, 4 deletions
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 <sys/stat.h>
#include <fcntl.h>
#include <time.h>
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 ;