summary refs log tree commit diff
path: root/bin
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-09 04:30:04 -0400
committerJune McEnroe <june@causal.agency>2020-03-09 20:01:30 -0400
commitb0f5458daa9d0a9e05138ed1b969f9f1d1b7294d (patch)
tree3f85ab07dba78103588aeec399975578bd7ed19b /bin
parentReplace sys_nsig with NSIG (diff)
downloadsrc-b0f5458daa9d0a9e05138ed1b969f9f1d1b7294d.tar.gz
src-b0f5458daa9d0a9e05138ed1b969f9f1d1b7294d.zip
Replace st_mtim with st_mtimespec
Diffstat (limited to '')
-rw-r--r--bin/1sh/test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/1sh/test.c b/bin/1sh/test.c
index 5cf4a424..8e618cc7 100644
--- a/bin/1sh/test.c
+++ b/bin/1sh/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