diff options
author | Vicent Marti <tanoku@gmail.com> | 2011-04-02 12:42:04 +0300 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2011-04-02 12:42:04 +0300 |
commit | 720d5472f8aa629161749450a27d3a4e3ecefea3 (patch) | |
tree | b591a0f297492ee99f68fb5b512f932f8c0c9b8a /src/commit.c | |
parent | d8ad64d3669182d368120a9b8db1147421498e22 (diff) | |
download | libgit2-720d5472f8aa629161749450a27d3a4e3ecefea3.tar.gz |
Change `parse` methods to const buffer
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commit.c b/src/commit.c index 03b111da5..9fc3f0767 100644 --- a/src/commit.c +++ b/src/commit.c @@ -235,9 +235,9 @@ int git_commit_create( return error; } -int commit_parse_buffer(git_commit *commit, void *data, size_t len) +int commit_parse_buffer(git_commit *commit, const void *data, size_t len) { - char *buffer = (char *)data; + const char *buffer = (char *)data; const char *buffer_end = (char *)data + len; git_oid parent_oid; |