diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-08-09 23:20:06 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-08-09 23:20:06 -0400 |
commit | baf9ee660c9f1d44d64341e225f9e0d7b808424d (patch) | |
tree | dd77e67044ce5cca653306d48569bdfbbc81e91d /tests/xtouch.c | |
parent | 9c74802117d97bdb55be08a954319e1b8733cb9d (diff) | |
download | bfs-baf9ee660c9f1d44d64341e225f9e0d7b808424d.tar.xz |
xtime: Remove xgettime()
clock_gettime() is available everywhere by now.
Diffstat (limited to 'tests/xtouch.c')
-rw-r--r-- | tests/xtouch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/xtouch.c b/tests/xtouch.c index 427e3e0..8660ea5 100644 --- a/tests/xtouch.c +++ b/tests/xtouch.c @@ -247,8 +247,8 @@ int main(int argc, char *argv[]) { times[1] = times[0]; } else { // Don't use UTIME_NOW, so that multiple paths all get the same timestamp - if (xgettime(×[0]) != 0) { - perror("xgettime()"); + if (clock_gettime(CLOCK_REALTIME, ×[0]) != 0) { + perror("clock_gettime()"); return EXIT_FAILURE; } times[1] = times[0]; |