diff --git a/include/git2/blob.h b/include/git2/blob.h index b527d61f4..2b7154fb5 100644 --- a/include/git2/blob.h +++ b/include/git2/blob.h @@ -102,7 +102,7 @@ GIT_EXTERN(int) git_blob_set_rawcontent(git_blob *blob, const void *buffer, size * @param blob pointer to the blob * @return the pointer; NULL if the blob has no contents */ -GIT_EXTERN(const char *) git_blob_rawcontent(git_blob *blob); +GIT_EXTERN(const void *) git_blob_rawcontent(git_blob *blob); /** * Get the size in bytes of the contents of a blob diff --git a/src/blob.c b/src/blob.c index a9e765b40..f157f4787 100644 --- a/src/blob.c +++ b/src/blob.c @@ -30,7 +30,7 @@ #include "common.h" #include "blob.h" -const char *git_blob_rawcontent(git_blob *blob) +const void *git_blob_rawcontent(git_blob *blob) { assert(blob);