Skip to content

Commit a9d6b9d

Browse files
authored
Merge pull request libgit2#4304 from pks-t/pks/patch-buffers
patch_generate: represent buffers as void pointers
2 parents dca8c44 + 9093ced commit a9d6b9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/git2/patch.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ GIT_EXTERN(int) git_patch_from_blob_and_buffer(
9696
git_patch **out,
9797
const git_blob *old_blob,
9898
const char *old_as_path,
99-
const char *buffer,
99+
const void *buffer,
100100
size_t buffer_len,
101101
const char *buffer_as_path,
102102
const git_diff_options *opts);
@@ -124,7 +124,7 @@ GIT_EXTERN(int) git_patch_from_buffers(
124124
const void *old_buffer,
125125
size_t old_len,
126126
const char *old_as_path,
127-
const char *new_buffer,
127+
const void *new_buffer,
128128
size_t new_len,
129129
const char *new_as_path,
130130
const git_diff_options *opts);

src/patch_generate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ int git_patch_from_blob_and_buffer(
641641
git_patch **out,
642642
const git_blob *old_blob,
643643
const char *old_path,
644-
const char *buf,
644+
const void *buf,
645645
size_t buflen,
646646
const char *buf_path,
647647
const git_diff_options *opts)
@@ -680,7 +680,7 @@ int git_patch_from_buffers(
680680
const void *old_buf,
681681
size_t old_len,
682682
const char *old_path,
683-
const char *new_buf,
683+
const void *new_buf,
684684
size_t new_len,
685685
const char *new_path,
686686
const git_diff_options *opts)

0 commit comments

Comments
 (0)