diff options
Diffstat (limited to 'include/git2/patch.h')
-rw-r--r-- | include/git2/patch.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/git2/patch.h b/include/git2/patch.h index 790cb74fc..b177798e6 100644 --- a/include/git2/patch.h +++ b/include/git2/patch.h @@ -96,7 +96,7 @@ GIT_EXTERN(int) git_patch_from_blob_and_buffer( git_patch **out, const git_blob *old_blob, const char *old_as_path, - const char *buffer, + const void *buffer, size_t buffer_len, const char *buffer_as_path, const git_diff_options *opts); @@ -124,7 +124,7 @@ GIT_EXTERN(int) git_patch_from_buffers( const void *old_buffer, size_t old_len, const char *old_as_path, - const char *new_buffer, + const void *new_buffer, size_t new_len, const char *new_as_path, const git_diff_options *opts); @@ -191,7 +191,7 @@ GIT_EXTERN(int) git_patch_get_hunk( * * @param patch The git_patch object * @param hunk_idx Index of the hunk - * @return Number of lines in hunk or -1 if invalid hunk index + * @return Number of lines in hunk or GIT_ENOTFOUND if invalid hunk index */ GIT_EXTERN(int) git_patch_num_lines_in_hunk( const git_patch *patch, |