]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Use __restrict rather than restrict.
authorRoy Marples <roy@marples.name>
Sat, 20 Dec 2014 12:15:07 +0000 (12:15 +0000)
committerRoy Marples <roy@marples.name>
Sat, 20 Dec 2014 12:15:07 +0000 (12:15 +0000)
Thanks to Will Miles.

compat/pollts.c
compat/pollts.h
compat/pselect.c

index 232a87ea0327d47bbc49662fabe8ede9c46449ae..905dad6e41a800c48df3de795801c21b0396031b 100644 (file)
@@ -39,8 +39,8 @@
 #warning "Only operating system support for pollts(2) can correct this."
 
 int
-pollts(struct pollfd *restrict fds, nfds_t nfds,
-    const struct timespec *restrict ts, const sigset_t *restrict sigmask)
+pollts(struct pollfd *__restrict fds, nfds_t nfds,
+    const struct timespec *__restrict ts, const sigset_t *__restrict sigmask)
 {
        int r, timeout;
        sigset_t oldset;
index 60ec3a355d4f1d0607a32f22803b3052612b223f..8fc63d0f31541883b55963858a634368fb63166a 100644 (file)
@@ -33,7 +33,7 @@
 #include <time.h>
 
 int
-pollts(struct pollfd *restrict, nfds_t, const struct timespec *restrict,
-    const sigset_t *restrict);
+pollts(struct pollfd *__restrict, nfds_t, const struct timespec *__restrict,
+    const sigset_t *__restrict);
 
 #endif
index 8c6d8ed16d0876cef305ebd04536d8e837cc8256..78911fa0687085733aeeb039b83975d67fc149ea 100644 (file)
@@ -36,8 +36,8 @@
 #include "pollts.h"
 
 int
-pollts(struct pollfd *restrict fds, nfds_t nfds,
-    const struct timespec *restrict ts, const sigset_t *restrict sigmask)
+pollts(struct pollfd *__restrict fds, nfds_t nfds,
+    const struct timespec *__restrict ts, const sigset_t *__restrict sigmask)
 {
        fd_set read_fds;
        nfds_t n;