]> git.proxmox.com Git - libgit2.git/blobdiff - tests/apply/fromfile.c
New upstream version 1.4.3+dfsg.1
[libgit2.git] / tests / apply / fromfile.c
index 477e283adcb008c8155513f4b1d019eccfb4cfd3..8cde623928a89aed18a7cbfb62efc2c6fb507c1f 100644 (file)
@@ -5,7 +5,6 @@
 #include "patch.h"
 #include "patch_parse.h"
 #include "repository.h"
-#include "buf_text.h"
 
 #include "../patch/patch_common.h"
 
@@ -31,8 +30,8 @@ static int apply_patchfile(
        unsigned int mode_expected)
 {
        git_patch *patch;
-       git_buf result = GIT_BUF_INIT;
-       git_buf patchbuf = GIT_BUF_INIT;
+       git_str result = GIT_STR_INIT;
+       git_str patchbuf = GIT_STR_INIT;
        char *filename;
        unsigned int mode;
        int error;
@@ -51,8 +50,8 @@ static int apply_patchfile(
        }
 
        git__free(filename);
-       git_buf_dispose(&result);
-       git_buf_dispose(&patchbuf);
+       git_str_dispose(&result);
+       git_str_dispose(&patchbuf);
        git_patch_free(patch);
 
        return error;