[rtems commit] posix_devctl: Fix for pre C99
Sebastian Huber
sebh at rtems.org
Thu Mar 2 06:57:33 UTC 2017
Module: rtems
Branch: master
Commit: 1f618ab00fc499ccb38af58a6cb185f643298fe1
Changeset: http://git.rtems.org/rtems/commit/?id=1f618ab00fc499ccb38af58a6cb185f643298fe1
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Mar 2 07:54:52 2017 +0100
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.
---
cpukit/libcsupport/src/posix_devctl.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/cpukit/libcsupport/src/posix_devctl.c b/cpukit/libcsupport/src/posix_devctl.c
index 9b86e0e..415b94e 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
)
{
/*
More information about the vc
mailing list