mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-05 21:21:49 +00:00
bootchart: fix a -Wshadow warning for "now"
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
a2e9b33808
commit
2c408fbf64
+3
-3
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user