1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-06 08:26:52 +03:00

bootchart: fix a -Wshadow warning for "now"

This commit is contained in:
Auke Kok 2013-01-10 11:34:59 -08:00 committed by Zbigniew Jędrzejewski-Szmek
parent a2e9b33808
commit 2c408fbf64

View 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));
} }