Get rid of warning: declaration of 'clock' shadows a global declaration
on some platforms
This commit is contained in:
+2
-2
@@ -7,12 +7,12 @@
|
|||||||
#define UNUSED
|
#define UNUSED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void uc_timeofday_now(struct UCoreClock *clock UNUSED, struct timeval *tv)
|
static void uc_timeofday_now(struct UCoreClock *uclock UNUSED, struct timeval *tv)
|
||||||
{
|
{
|
||||||
gettimeofday(tv, NULL);
|
gettimeofday(tv, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void uc_time_now(struct UCoreClock *clock UNUSED, struct timeval *tv)
|
static void uc_time_now(struct UCoreClock *uclock UNUSED, struct timeval *tv)
|
||||||
{
|
{
|
||||||
tv->tv_sec = time(NULL);
|
tv->tv_sec = time(NULL);
|
||||||
tv->tv_usec = 0;
|
tv->tv_usec = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user