diff options
author | Edward Thomson <ethomson@github.com> | 2016-03-07 09:37:51 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@github.com> | 2016-03-07 09:37:51 -0500 |
commit | 6abdf52d6eba71908f4389b14f9b7b3f1827f8c7 (patch) | |
tree | 8e015f9b42ae7297dbbdc8857bbe167cb9b7f9ad | |
parent | 2d8807126b4dd5a40b34cdeb33c901054fcdf8a3 (diff) | |
download | libgit2-6abdf52d6eba71908f4389b14f9b7b3f1827f8c7.tar.gz |
merge::workdir::dirty: update to use `st_ctime_nsec`
Update unit test to use newfangled `st_ctime_nsec`, which provides
indirection to the platform-correct name.
-rw-r--r-- | tests/merge/workdir/dirty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/merge/workdir/dirty.c b/tests/merge/workdir/dirty.c index 99e33e0cd..a69919f53 100644 --- a/tests/merge/workdir/dirty.c +++ b/tests/merge/workdir/dirty.c @@ -165,8 +165,8 @@ static void hack_index(char *files[]) entry->ctime.seconds = (int32_t)statbuf.st_ctime; entry->mtime.seconds = (int32_t)statbuf.st_mtime; #if defined(GIT_USE_NSEC) - entry->ctime.nanoseconds = statbuf.st_ctim.tv_nsec; - entry->mtime.nanoseconds = statbuf.st_mtim.tv_nsec; + entry->ctime.nanoseconds = statbuf.st_ctime_nsec; + entry->mtime.nanoseconds = statbuf.st_mtime_nsec; #else entry->ctime.nanoseconds = 0; entry->mtime.nanoseconds = 0; |