summaryrefslogtreecommitdiff
path: root/src/commit.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill@shutemov.name>2011-07-15 14:59:37 +0300
committerVicent Marti <tanoku@gmail.com>2011-07-25 21:12:46 +0200
commit14468c6be59567bf9d90ff21bd62893409ec82df (patch)
treee724441f0d2f90588de0652fc1411804084efd7b /src/commit.c
parent269beb47107c761de4a128edc9660cc64f2b7ffc (diff)
downloadlibgit2-14468c6be59567bf9d90ff21bd62893409ec82df.tar.gz
commit: fix cast warnings
/home/kas/git/public/libgit2/src/commit.c: In function ‘commit_parse_buffer’: /home/kas/git/public/libgit2/src/commit.c:186:23: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] /home/kas/git/public/libgit2/src/commit.c:187:27: warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual] Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Diffstat (limited to 'src/commit.c')
-rw-r--r--src/commit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commit.c b/src/commit.c
index a6c19e59..7c0965cb 100644
--- a/src/commit.c
+++ b/src/commit.c
@@ -183,8 +183,8 @@ cleanup:
int commit_parse_buffer(git_commit *commit, const void *data, size_t len)
{
- const char *buffer = (char *)data;
- const char *buffer_end = (char *)data + len;
+ const char *buffer = data;
+ const char *buffer_end = (const char *)data + len;
git_oid parent_oid;
int error;