[systemd-devel] [PATCH 2/3] bootchart: fix a -Wshadow warning for "now".

Auke Kok auke-jan.h.kok at intel.com
Thu Jan 10 11:34:59 PST 2013


---
 src/bootchart/log.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/bootchart/log.c b/src/bootchart/log.c
index c697121..ff70e2d 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));
 }
 
 
-- 
1.7.11.2



More information about the systemd-devel mailing list