[rtems commit] gettimeofday: Add restrict keyword

Joel Sherrill joel at rtems.org
Sat Nov 30 00:06:29 UTC 2013


Module:    rtems
Branch:    master
Commit:    77b1de22cc5ad04d6a17e88afefd6629aa6e3e43
Changeset: http://git.rtems.org/rtems/commit/?id=77b1de22cc5ad04d6a17e88afefd6629aa6e3e43

Author:    Bryan Dunsmore <dunsmoreb at gmail.com>
Date:      Fri Nov 22 17:09:44 2013 -0600

gettimeofday: Add restrict keyword

---

 cpukit/libcsupport/src/__gettod.c |    4 ++--
 cpukit/libmisc/uuid/gen_uuid.c    |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/cpukit/libcsupport/src/__gettod.c b/cpukit/libcsupport/src/__gettod.c
index fe913dc..de31e9b 100644
--- a/cpukit/libcsupport/src/__gettod.c
+++ b/cpukit/libcsupport/src/__gettod.c
@@ -38,8 +38,8 @@
  *  @note The solaris gettimeofday does not have a second parameter.
  */
 int gettimeofday(
-  struct timeval  *tp,
-  void * __tz __attribute__((unused))
+  struct timeval *__restrict tp,
+  void *__restrict __tz __attribute__((unused))
 )
 {
   /* struct timezone* tzp = (struct timezone*) __tz; */
diff --git a/cpukit/libmisc/uuid/gen_uuid.c b/cpukit/libmisc/uuid/gen_uuid.c
index 4d10ff3..67cac77 100644
--- a/cpukit/libmisc/uuid/gen_uuid.c
+++ b/cpukit/libmisc/uuid/gen_uuid.c
@@ -127,7 +127,7 @@ THREAD_LOCAL unsigned short jrand_seed[3];
 #endif
 
 #ifdef _WIN32
-static void gettimeofday (struct timeval *tv, void *dummy)
+static void gettimeofday (struct timeval *__restrict tv, void *__restrict dummy)
 {
 	FILETIME	ftime;
 	uint64_t	n;




More information about the vc mailing list