diff options
| author | Carlos Martín Nieto <carlosmn@github.com> | 2016-02-25 18:42:09 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <carlosmn@github.com> | 2016-02-25 18:42:09 +0100 |
| commit | 9f4e7c84904030ecc7d14637fa8c51bac087fedf (patch) | |
| tree | be403c6356d4f7b177f637a5d98e3c1e1afb0439 /src/index.c | |
| parent | 0d9a7498c5f8852a60ffaf4d1c6b53c919193694 (diff) | |
| parent | 3d6a42d1e14281c564d779e7490d761555d014d4 (diff) | |
| download | libgit2-9f4e7c84904030ecc7d14637fa8c51bac087fedf.tar.gz | |
Merge pull request #3638 from ethomson/nsec
USE_NSECS fixes
Diffstat (limited to 'src/index.c')
| -rw-r--r-- | src/index.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/index.c b/src/index.c index 483f7af7c..5704432ae 100644 --- a/src/index.c +++ b/src/index.c @@ -829,8 +829,8 @@ void git_index_entry__init_from_stat( entry->ctime.seconds = (int32_t)st->st_ctime; entry->mtime.seconds = (int32_t)st->st_mtime; #if defined(GIT_USE_NSEC) - entry->mtime.nanoseconds = st->st_mtim.tv_nsec; - entry->ctime.nanoseconds = st->st_ctim.tv_nsec; + entry->mtime.nanoseconds = st->st_mtime_nsec; + entry->ctime.nanoseconds = st->st_ctime_nsec; #endif entry->dev = st->st_rdev; entry->ino = st->st_ino; |
