mirror of
https://git.proxmox.com/git/libgit2
synced 2026-01-04 16:24:52 +00:00
Const up members of git_merge_file_result
This commit is contained in:
parent
336e895721
commit
7f930ded88
@ -177,13 +177,13 @@ typedef struct {
|
||||
* The path that the resultant merge file should use, or NULL if a
|
||||
* filename conflict would occur.
|
||||
*/
|
||||
char *path;
|
||||
const char *path;
|
||||
|
||||
/** The mode that the resultant merge file should use. */
|
||||
unsigned int mode;
|
||||
|
||||
/** The contents of the merge. */
|
||||
unsigned char *ptr;
|
||||
const char *ptr;
|
||||
|
||||
/** The length of the merge contents. */
|
||||
size_t len;
|
||||
|
||||
@ -272,8 +272,8 @@ void git_merge_file_result_free(git_merge_file_result *result)
|
||||
if (result == NULL)
|
||||
return;
|
||||
|
||||
git__free(result->path);
|
||||
git__free((char *)result->path);
|
||||
|
||||
/* xdiff uses malloc() not git_malloc, so we use free(), not git_free() */
|
||||
free(result->ptr);
|
||||
free((char *)result->ptr);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user