Get rid of warning: declaration of 'clock' shadows a global declaration

on some platforms
This commit is contained in:
Nils O. Selåsdal
2013-04-13 03:43:43 +02:00
parent ad8181cf4d
commit 8f61118e0d
+2 -2
View File
@@ -7,12 +7,12 @@
#define UNUSED
#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);
}
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_usec = 0;