]> git.proxmox.com Git - libgit2.git/blobdiff - tests/core/useragent.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / core / useragent.c
index 2ce935bf5466e6c2b28edaa354f19975c551c42b..a4ece902fd9f85cb40e67f2324ee14b702d6d2f8 100644 (file)
@@ -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);
 }