@@ -12,9 +12,10 @@ static double qpc2usec;
12
12
13
13
#define USECS_PER_SEC 1000000
14
14
15
- int osal_getrelativetime (struct timeval * tv , struct timezone * tz )
15
+ static int osal_getrelativetime (struct timeval * tv , struct timezone * tz )
16
16
{
17
17
int64_t wintime , usecs ;
18
+ (void )tz ;
18
19
if (!sysfrequency )
19
20
{
20
21
timeBeginPeriod (1 );
@@ -33,7 +34,7 @@ int osal_gettimeofday(struct timeval *tv, struct timezone *tz)
33
34
{
34
35
FILETIME system_time ;
35
36
int64 system_time64 , usecs ;
36
-
37
+ ( void ) tz ;
37
38
/* The offset variable is required to switch from Windows epoch (January 1, 1601) to
38
39
* Unix epoch (January 1, 1970). Number of days between both epochs: 134.774
39
40
*
@@ -130,23 +131,23 @@ void osal_free(void *ptr)
130
131
free (ptr );
131
132
}
132
133
133
- int osal_thread_create (void * * thandle , int stacksize , void * func , void * param )
134
+ int osal_thread_create (void * thandle , int stacksize , void * func , void * param )
134
135
{
135
- * thandle = CreateThread (NULL , stacksize , func , param , 0 , NULL );
136
+ * ( OSAL_THREAD_HANDLE * ) thandle = CreateThread (NULL , stacksize , func , param , 0 , NULL );
136
137
if (!thandle )
137
138
{
138
139
return 0 ;
139
140
}
140
141
return 1 ;
141
142
}
142
143
143
- int osal_thread_create_rt (void * * thandle , int stacksize , void * func , void * param )
144
+ int osal_thread_create_rt (void * thandle , int stacksize , void * func , void * param )
144
145
{
145
146
int ret ;
146
147
ret = osal_thread_create (thandle , stacksize , func , param );
147
148
if (ret )
148
149
{
149
- ret = SetThreadPriority (* thandle , THREAD_PRIORITY_TIME_CRITICAL );
150
+ ret = SetThreadPriority (thandle , THREAD_PRIORITY_TIME_CRITICAL );
150
151
}
151
152
return ret ;
152
153
}
0 commit comments