gettimeofday: Add restrict keyword

This commit is contained in:
Bryan Dunsmore
2013-11-22 17:09:44 -06:00
committed by Joel Sherrill
parent 4f8ac347f3
commit 77b1de22cc
2 changed files with 3 additions and 3 deletions

View File

@@ -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; */

View File

@@ -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;