diff options
author | Kay Sievers <kay@vrfy.org> | 2012-11-11 20:45:05 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-11-12 01:03:14 +0100 |
commit | 40fe8b11be9c1a1b38b91db097a5d6ebfa99304c (patch) | |
tree | 41183236fc9e51fe054afe378151c045893e75f8 /src/udev/udev-rules.c | |
parent | 1707b36c6da447a42b0223840cf2eb84ca3f2f34 (diff) |
udev: use usec_t and now()
Diffstat (limited to 'src/udev/udev-rules.c')
-rw-r--r-- | src/udev/udev-rules.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/udev-rules.c b/src/udev/udev-rules.c index 6f64bf6055..494ca7b689 100644 --- a/src/udev/udev-rules.c +++ b/src/udev/udev-rules.c @@ -47,7 +47,7 @@ struct uid_gid { struct udev_rules { struct udev *udev; char **dirs; - unsigned long long *dirs_ts_usec; + usec_t *dirs_ts_usec; int resolve_names; /* every key in the rules file becomes a token */ @@ -1691,7 +1691,7 @@ bool udev_rules_check_timestamp(struct udev_rules *rules) if (stat(rules->dirs[i], &stats) < 0) continue; - if (rules->dirs_ts_usec[i] == ts_usec(&stats.st_mtim)) + if (rules->dirs_ts_usec[i] == timespec_load(&stats.st_mtim)) continue; /* first check */ @@ -1701,7 +1701,7 @@ bool udev_rules_check_timestamp(struct udev_rules *rules) } /* update timestamp */ - rules->dirs_ts_usec[i] = ts_usec(&stats.st_mtim); + rules->dirs_ts_usec[i] = timespec_load(&stats.st_mtim); } out: return changed; |