diff options
author | June McEnroe <june@causal.agency> | 2019-01-10 19:54:05 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2019-01-10 19:54:55 -0500 |
commit | 06e9d6a59bfa78c8b4047586b41bf35fc16175ef (patch) | |
tree | f2d177ca31ff92c64c33703e614af7b5a07a82a9 | |
parent | Replace sys_nsig with NSIG (diff) | |
download | src-06e9d6a59bfa78c8b4047586b41bf35fc16175ef.tar.gz src-06e9d6a59bfa78c8b4047586b41bf35fc16175ef.zip |
Replace st_mtim with st_mtimespec
-rw-r--r-- | bin/cash/test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/cash/test.c b/bin/cash/test.c index e51391c2..e74c4f4c 100644 --- a/bin/cash/test.c +++ b/bin/cash/test.c @@ -603,12 +603,12 @@ newerf (const char *f1, const char *f2) if (stat(f1, &b1) != 0 || stat(f2, &b2) != 0) return 0; - if (b1.st_mtim.tv_sec > b2.st_mtim.tv_sec) + if (b1.st_mtimespec.tv_sec > b2.st_mtimespec.tv_sec) return 1; - if (b1.st_mtim.tv_sec < b2.st_mtim.tv_sec) + if (b1.st_mtimespec.tv_sec < b2.st_mtimespec.tv_sec) return 0; - return (b1.st_mtim.tv_nsec > b2.st_mtim.tv_nsec); + return (b1.st_mtimespec.tv_nsec > b2.st_mtimespec.tv_nsec); } static int |