From: Auke Kok Date: Thu, 10 Jan 2013 19:34:59 +0000 (-0800) Subject: bootchart: fix a -Wshadow warning for "now" X-Git-Tag: v198~577 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=2c408fbf64af68c0fa6e882a2a34e5e7bf342ff6 bootchart: fix a -Wshadow warning for "now" --- diff --git a/src/bootchart/log.c b/src/bootchart/log.c index e41689d61..48002fafd 100644 --- a/src/bootchart/log.c +++ b/src/bootchart/log.c @@ -39,11 +39,11 @@ DIR *proc; double gettime_ns(void) { - struct timespec now; + struct timespec n; - clock_gettime(CLOCK_MONOTONIC, &now); + clock_gettime(CLOCK_MONOTONIC, &n); - return (now.tv_sec + (now.tv_nsec / 1000000000.0)); + return (n.tv_sec + (n.tv_nsec / 1000000000.0)); }