diff options
author | Vicent Marti <vicent@github.com> | 2014-03-31 20:15:35 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-03-31 20:15:35 +0200 |
commit | fad04120275925257a93312a3e05af64e9d17090 (patch) | |
tree | 0f1b80f4e054008a85c0bca4c7344e7549460672 | |
parent | 336e89572192b75b803970f316417d5f5309ee7b (diff) | |
parent | 7f930ded88b2adda94423a618e268700494dc5c0 (diff) | |
download | libgit2-fad04120275925257a93312a3e05af64e9d17090.tar.gz |
Merge pull request #2224 from ethomson/merge_file_const
Const up members of git_merge_file_result
-rw-r--r-- | include/git2/merge.h | 4 | ||||
-rw-r--r-- | src/merge_file.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/git2/merge.h b/include/git2/merge.h index 939f20214..769df5a8d 100644 --- a/include/git2/merge.h +++ b/include/git2/merge.h @@ -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; diff --git a/src/merge_file.c b/src/merge_file.c index fc45cbfbf..ab9ca4168 100644 --- a/src/merge_file.c +++ b/src/merge_file.c @@ -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); } |