diff options
| author | Ben Straub <bs@github.com> | 2012-11-30 20:34:50 -0800 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2012-11-30 20:34:50 -0800 |
| commit | 0ab3a2ab2c39a99b7cb3c969fd7b896afcec4885 (patch) | |
| tree | ab8f3c0aa63a7c27098c12a8b7f049008b396378 /tests-clar/diff | |
| parent | c7231c45fecf6c0ae91815a82db7e98c94689497 (diff) | |
| download | libgit2-0ab3a2ab2c39a99b7cb3c969fd7b896afcec4885.tar.gz | |
Deploy GIT_INIT_STRUCTURE
Diffstat (limited to 'tests-clar/diff')
| -rw-r--r-- | tests-clar/diff/blob.c | 2 | ||||
| -rw-r--r-- | tests-clar/diff/diff_helpers.h | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/tests-clar/diff/blob.c b/tests-clar/diff/blob.c index ae3129c9f..d7fdba0e6 100644 --- a/tests-clar/diff/blob.c +++ b/tests-clar/diff/blob.c @@ -12,7 +12,7 @@ void test_diff_blob__initialize(void) g_repo = cl_git_sandbox_init("attr"); - reset_diff_opts(&opts); + GIT_INIT_STRUCTURE(&opts, GIT_DIFF_OPTIONS_VERSION); opts.context_lines = 1; opts.interhunk_lines = 0; diff --git a/tests-clar/diff/diff_helpers.h b/tests-clar/diff/diff_helpers.h index 0f7c0e4f8..49c265285 100644 --- a/tests-clar/diff/diff_helpers.h +++ b/tests-clar/diff/diff_helpers.h @@ -49,9 +49,3 @@ extern int diff_foreach_via_iterator( extern void diff_print(FILE *fp, git_diff_list *diff); - -GIT_INLINE(void) reset_diff_opts(git_diff_options *opts) -{ - git_diff_options init = GIT_DIFF_OPTIONS_INIT; - memmove(opts, &init, sizeof(init)); -} |
