summaryrefslogtreecommitdiff
path: root/tests/core/useragent.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/core/useragent.c')
-rw-r--r--tests/core/useragent.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/core/useragent.c b/tests/core/useragent.c
index 2ce935bf5..a4ece902f 100644
--- a/tests/core/useragent.c
+++ b/tests/core/useragent.c
@@ -4,7 +4,7 @@
void test_core_useragent__get(void)
{
const char *custom_name = "super duper git";
- git_buf buf = GIT_BUF_INIT;
+ git_str buf = GIT_STR_INIT;
cl_assert_equal_p(NULL, git_libgit2__user_agent());
cl_git_pass(git_libgit2_opts(GIT_OPT_SET_USER_AGENT, custom_name));
@@ -13,5 +13,5 @@ void test_core_useragent__get(void)
cl_git_pass(git_libgit2_opts(GIT_OPT_GET_USER_AGENT, &buf));
cl_assert_equal_s(custom_name, buf.ptr);
- git_buf_dispose(&buf);
+ git_str_dispose(&buf);
}