summary refs log tree commit diff
path: root/bin/cash
diff options
context:
space:
mode:
Diffstat (limited to 'bin/cash')
-rw-r--r--bin/cash/test.c6
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
src/bin/day06.rs?id=cc0f0211c8ac8533935d5696470a38f0527a5a9a&follow=1'>Day 6, part 2June McEnroe 2017-12-06Day 6June McEnroe 2017-12-05Day 5, part 2June McEnroe 2017-12-05Day 5June McEnroe 2017-12-04Day 4, part 2June McEnroe That ugly sort map though. 2017-12-04Day 4June McEnroe 2017-12-03Day 3, part 2June McEnroe I am super surprised that worked on the first try. 2017-12-03Day 3, clean upJune McEnroe 2017-12-03Day 3June McEnroe This is fucking awful and I'm angry. 2017-12-02Day 2, part 2June McEnroe 2017-12-02Day 2June McEnroe 2017-12-01Day 1, part 2June McEnroe 2017-12-01Day 1June McEnroe 2017-11-27Move to 2016 directoryJune McEnroe