diff options
author | Auke Kok <auke-jan.h.kok@intel.com> | 2013-01-10 11:34:59 -0800 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-01-10 15:21:52 -0500 |
commit | 2c408fbf64af68c0fa6e882a2a34e5e7bf342ff6 (patch) | |
tree | c56f7323f453d91d20c1ae92b6dbdbc7008848d8 /src/bootchart/log.c | |
parent | a2e9b3380804c9eff565836b0e32b88389d4391c (diff) |
bootchart: fix a -Wshadow warning for "now"
Diffstat (limited to 'src/bootchart/log.c')
-rw-r--r-- | src/bootchart/log.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootchart/log.c b/src/bootchart/log.c index e41689d611..48002fafd0 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)); } |