Commit 3490188b3c40b7a6cddd4acb11ee76db171dc5ef

Vicent Marti 2011-03-05T13:29:50

Change the return type of `git_blob_rawcontent` Should return `void *` for raw bytes. Signed-off-by: Vicent Marti <tanoku@gmail.com>

diff --git a/include/git2/blob.h b/include/git2/blob.h
index b527d61..2b7154f 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 a9e765b..f157f47 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);