forked from Imagelibrary/rtems
gettimeofday: Add restrict keyword
This commit is contained in:
committed by
Joel Sherrill
parent
4f8ac347f3
commit
77b1de22cc
@@ -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; */
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user