chiark / gitweb /
bootchart: fix a -Wshadow warning for "now"
authorAuke Kok <auke-jan.h.kok@intel.com>
Thu, 10 Jan 2013 19:34:59 +0000 (11:34 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 10 Jan 2013 20:21:52 +0000 (15:21 -0500)
src/bootchart/log.c

index e41689d6111ce369b7e8d5347500122a93727a03..48002fafd05faa117168988eb4c3ed8179e50a9c 100644 (file)
@@ -39,11 +39,11 @@ DIR *proc;
 
 double gettime_ns(void)
 {
 
 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));
 }
 
 
 }