diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-02 07:54:52 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-02 07:54:52 +0100 |
commit | 1f618ab00fc499ccb38af58a6cb185f643298fe1 (patch) | |
tree | aec477da26adefb6ba2a957c05e89ff373388c46 | |
parent | bsps/powerpc: Fix warnings (diff) | |
download | rtems-1f618ab00fc499ccb38af58a6cb185f643298fe1.tar.bz2 |
posix_devctl: Fix for pre C99
Use __restrict just like in <devctl.h> to avoid compiler errors with
older GCC, e.g. 4.8 or 4.9.
-rw-r--r-- | cpukit/libcsupport/src/posix_devctl.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libcsupport/src/posix_devctl.c b/cpukit/libcsupport/src/posix_devctl.c index 9b86e0e059..415b94e278 100644 --- a/cpukit/libcsupport/src/posix_devctl.c +++ b/cpukit/libcsupport/src/posix_devctl.c @@ -34,11 +34,11 @@ #include <rtems/seterr.h> int posix_devctl( - int fd, - int dcmd, - void *restrict dev_data_ptr, - size_t nbyte, - int *restrict dev_info_ptr + int fd, + int dcmd, + void *__restrict dev_data_ptr, + size_t nbyte, + int *__restrict dev_info_ptr ) { /* |