From 8f61118e0d8a2cdbc6c321e87524737763325346 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20O=2E=20Sel=C3=A5sdal?= Date: Sat, 13 Apr 2013 03:43:43 +0200 Subject: [PATCH] Get rid of warning: declaration of 'clock' shadows a global declaration on some platforms --- src/clock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/clock.c b/src/clock.c index 1256847..4d52dfb 100644 --- a/src/clock.c +++ b/src/clock.c @@ -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;