summaryrefslogtreecommitdiff
path: root/tests-clar/diff/patch.c
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-04 23:28:36 -0800
committerRussell Belfer <rb@github.com>2012-05-02 15:34:58 -0700
commit16b83019af63d837b6934bcf1b71b8697d5d94c8 (patch)
tree09f9ca31b329fc630629d11aa097e6563f1904b5 /tests-clar/diff/patch.c
parentb88021463f9ca4ebffe8e2a5b15d4b09be465923 (diff)
downloadlibgit2-16b83019af63d837b6934bcf1b71b8697d5d94c8.tar.gz
Fix usage of "new" for fieldname in public header
This should restore the ability to include libgit2 headers in C++ projects. Cherry picked 2de60205dfea2c4a422b2108a5e8605f97c2e895 from development into new-error-handling.
Diffstat (limited to 'tests-clar/diff/patch.c')
-rw-r--r--tests-clar/diff/patch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests-clar/diff/patch.c b/tests-clar/diff/patch.c
index fdb79a47..05e74866 100644
--- a/tests-clar/diff/patch.c
+++ b/tests-clar/diff/patch.c
@@ -59,8 +59,8 @@ check_range:
cl_assert_equal_i(0, range->new_lines);
check_delta:
- cl_assert_equal_s("subdir.txt", delta->old.path);
- cl_assert_equal_s("subdir.txt", delta->new.path);
+ cl_assert_equal_s("subdir.txt", delta->old_file.path);
+ cl_assert_equal_s("subdir.txt", delta->new_file.path);
cl_assert_equal_i(GIT_DELTA_DELETED, delta->status);
return 0;