summaryrefslogtreecommitdiff
path: root/tests/diff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlosmn@github.com>2016-02-18 12:31:56 +0100
committerCarlos Martín Nieto <carlosmn@github.com>2016-02-18 12:31:56 +0100
commit5663d4f69124481fcfab2952b5207c7563568388 (patch)
tree4925a5c8de2f660f9bf70160aa61970b6ecf81eb /tests/diff
parent594a5d12d4b9ba3ea542722805ada1028bd1b646 (diff)
parent9ce0399c4dad5ff040f2219fa1dd7a4531766414 (diff)
downloadlibgit2-5663d4f69124481fcfab2952b5207c7563568388.tar.gz
Merge pull request #3613 from ethomson/fixups
Remove most of the silly warnings
Diffstat (limited to 'tests/diff')
-rw-r--r--tests/diff/workdir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/diff/workdir.c b/tests/diff/workdir.c
index 4c782339d..892c7b72d 100644
--- a/tests/diff/workdir.c
+++ b/tests/diff/workdir.c
@@ -1755,7 +1755,7 @@ void test_diff_workdir__with_stale_index(void)
static int touch_file(void *payload, git_buf *path)
{
struct stat st;
- struct timeval times[2];
+ struct p_timeval times[2];
GIT_UNUSED(payload);
if (git_path_isdir(path->ptr))
@@ -2006,7 +2006,7 @@ void test_diff_workdir__only_writes_index_when_necessary(void)
git_oid initial, first, second;
git_buf path = GIT_BUF_INIT;
struct stat st;
- struct timeval times[2];
+ struct p_timeval times[2];
opts.flags |= GIT_DIFF_INCLUDE_UNTRACKED | GIT_DIFF_UPDATE_INDEX;