diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 13:28:08 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-11 17:31:43 -0500 |
| commit | ca14942e19788bd01334af64554c3095f3ff0d4a (patch) | |
| tree | 9a05a7224d87e45b3ba2ac88501c66e4f0149ab9 /tests/diff | |
| parent | 3f024b6d5439eda83d8bebc197db062c4d6bdfeb (diff) | |
| download | libgit2-ca14942e19788bd01334af64554c3095f3ff0d4a.tar.gz | |
tests: declare functions statically where appropriate
Diffstat (limited to 'tests/diff')
| -rw-r--r-- | tests/diff/binary.c | 2 | ||||
| -rw-r--r-- | tests/diff/rename.c | 2 | ||||
| -rw-r--r-- | tests/diff/tree.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/diff/binary.c b/tests/diff/binary.c index 24d2b22ef..4e71f39c6 100644 --- a/tests/diff/binary.c +++ b/tests/diff/binary.c @@ -17,7 +17,7 @@ void test_diff_binary__cleanup(void) cl_git_sandbox_cleanup(); } -void test_patch( +static void test_patch( const char *one, const char *two, const git_diff_options *opts, diff --git a/tests/diff/rename.c b/tests/diff/rename.c index d28a4d989..41dc95eb4 100644 --- a/tests/diff/rename.c +++ b/tests/diff/rename.c @@ -938,7 +938,7 @@ struct rename_expected size_t idx; }; -int test_names_expected(const git_diff_delta *delta, float progress, void *p) +static int test_names_expected(const git_diff_delta *delta, float progress, void *p) { struct rename_expected *expected = p; diff --git a/tests/diff/tree.c b/tests/diff/tree.c index dfe4d254c..e03ee7b22 100644 --- a/tests/diff/tree.c +++ b/tests/diff/tree.c @@ -320,7 +320,7 @@ void test_diff_tree__checks_options_version(void) err = git_error_last(); } -void process_tree_to_tree_diffing( +static void process_tree_to_tree_diffing( const char *old_commit, const char *new_commit) { |
